disable record movie dialog if core needs rebooting, fixes bug of recording the wrong sync settings into the movie and causing a crash

This commit is contained in:
adelikat 2020-04-18 13:00:26 -05:00
parent fa552cab81
commit 6d699012a6
1 changed files with 6 additions and 2 deletions

View File

@ -253,12 +253,16 @@ namespace BizHawk.Client.EmuHawk
PlayFromBeginningMenuItem.ShortcutKeyDisplayString = Config.HotkeyBindings["Play from beginning"].Bindings;
SaveMovieMenuItem.ShortcutKeyDisplayString = Config.HotkeyBindings["Save Movie"].Bindings;
RecordMovieMenuItem.Enabled
= PlayMovieMenuItem.Enabled
PlayMovieMenuItem.Enabled
= ImportMoviesMenuItem.Enabled
= RecentMovieSubMenu.Enabled
= !Tools.IsLoaded<TAStudio>();
// Record movie dialog should not be opened while in need of a reboot,
// Otherwise the wrong sync settings could be set for the recording movie and cause crashes
RecordMovieMenuItem.Enabled = !Tools.IsLoaded<TAStudio>()
&& RebootStatusBarIcon.Visible == false;
PlayFromBeginningMenuItem.Enabled = MovieSession.Movie.IsActive() && !Tools.IsLoaded<TAStudio>();
}