gui: Apply missing recording menu option disablers. (#4001)

Fixes recording keybind menu options not disabling when pause is selected or when the ESC key is used.
This commit is contained in:
Quinton Clark 2020-12-17 00:12:23 -06:00 committed by GitHub
parent 37b8819fc5
commit 0e13200911
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 0 deletions

View File

@ -363,7 +363,15 @@ namespace Implementations
}
if (g_Conf->GSWindow.CloseOnEsc)
{
sMainFrame.SetFocus();
#ifndef DISABLE_RECORDING
// Disable recording controls that only make sense if the game is running
sMainFrame.enableRecordingMenuItem(MenuId_Recording_FrameAdvance, false);
sMainFrame.enableRecordingMenuItem(MenuId_Recording_TogglePause, false);
sMainFrame.enableRecordingMenuItem(MenuId_Recording_ToggleRecordingMode, false);
#endif
}
}
void Sys_Resume()

View File

@ -721,7 +721,15 @@ protected:
void InvokeEvent()
{
if (CoreThread.IsOpen())
{
CoreThread.Suspend();
#ifndef DISABLE_RECORDING
// Disable recording controls that only make sense if the game is running
sMainFrame.enableRecordingMenuItem(MenuId_Recording_FrameAdvance, false);
sMainFrame.enableRecordingMenuItem(MenuId_Recording_TogglePause, false);
sMainFrame.enableRecordingMenuItem(MenuId_Recording_ToggleRecordingMode, false);
#endif
}
else
CoreThread.Resume();
}