Skip to content

Commit

Permalink
Fix: Very first load of ROM file would fail.
Browse files Browse the repository at this point in the history
...as it is null.
  • Loading branch information
deanthecoder committed Feb 3, 2024
1 parent 7f027d5 commit f5bac8b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Speculator/Speculator/ViewModels/RomSelectorViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public RomSelectorViewModel(ZxSpectrum speccy)

LoadBasicRomAction = romFile =>
{
speccy.LoadBasicRom(romFile);
speccy.LoadBasicRom(romFile ?? RomFile);

Settings.Instance.RomFile = romFile;
Settings.Instance.UseSpeccyColors = UseSpeccyColors;
Expand Down
2 changes: 2 additions & 0 deletions Speculator/Speculator/Views/MainWindow.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,12 @@

using System;
using System.Linq;
using System.Threading.Tasks;
using Avalonia.Controls;
using Avalonia.Input;
using Avalonia.Interactivity;
using Avalonia.Platform.Storage;
using Avalonia.Threading;
using CSharp.Utils.Extensions;
using CSharp.Utils.UI;
using Material.Icons.Avalonia;
Expand Down

0 comments on commit f5bac8b

Please sign in to comment.