From f15bf2e7311deb08cb1dce178139c5f144fdfad4 Mon Sep 17 00:00:00 2001 From: adelikat Date: Sun, 29 Mar 2020 10:11:19 -0500 Subject: [PATCH] disable some movie menu items on the mainform when tastudio is open, like play and record movie. These jack up tastudio instantly, and there's no reason to be doing this stuff --- BizHawk.Client.EmuHawk/MainForm.Events.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/BizHawk.Client.EmuHawk/MainForm.Events.cs b/BizHawk.Client.EmuHawk/MainForm.Events.cs index 1e79c1afca..a6fd7bd4d8 100644 --- a/BizHawk.Client.EmuHawk/MainForm.Events.cs +++ b/BizHawk.Client.EmuHawk/MainForm.Events.cs @@ -239,7 +239,6 @@ namespace BizHawk.Client.EmuHawk FullMovieLoadstatesMenuItem.Enabled = !MovieSession.MultiTrack.IsActive; StopMovieWithoutSavingMenuItem.Enabled = MovieSession.Movie.IsActive() && MovieSession.Movie.Changes; StopMovieMenuItem.Enabled - = PlayFromBeginningMenuItem.Enabled = SaveMovieMenuItem.Enabled = SaveMovieAsMenuItem.Enabled = MovieSession.Movie.IsActive(); @@ -254,6 +253,13 @@ namespace BizHawk.Client.EmuHawk StopMovieMenuItem.ShortcutKeyDisplayString = Config.HotkeyBindings["Stop Movie"].Bindings; PlayFromBeginningMenuItem.ShortcutKeyDisplayString = Config.HotkeyBindings["Play from beginning"].Bindings; SaveMovieMenuItem.ShortcutKeyDisplayString = Config.HotkeyBindings["Save Movie"].Bindings; + + RecordMovieMenuItem.Enabled + = PlayMovieMenuItem.Enabled + = ImportMoviesMenuItem.Enabled + = !Tools.IsLoaded(); + + PlayFromBeginningMenuItem.Enabled = MovieSession.Movie.IsActive() && !Tools.IsLoaded(); } private void RecentMovieSubMenu_DropDownOpened(object sender, EventArgs e)