mirror of https://github.com/PCSX2/pcsx2.git
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:
parent
37b8819fc5
commit
0e13200911
|
@ -363,7 +363,15 @@ namespace Implementations
|
||||||
}
|
}
|
||||||
|
|
||||||
if (g_Conf->GSWindow.CloseOnEsc)
|
if (g_Conf->GSWindow.CloseOnEsc)
|
||||||
|
{
|
||||||
sMainFrame.SetFocus();
|
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()
|
void Sys_Resume()
|
||||||
|
|
|
@ -721,7 +721,15 @@ protected:
|
||||||
void InvokeEvent()
|
void InvokeEvent()
|
||||||
{
|
{
|
||||||
if (CoreThread.IsOpen())
|
if (CoreThread.IsOpen())
|
||||||
|
{
|
||||||
CoreThread.Suspend();
|
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
|
else
|
||||||
CoreThread.Resume();
|
CoreThread.Resume();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue