input-rec: Update the GS Frame's freq. properly on enabling/disabling

This commit is contained in:
Tyler Wilding
2021-01-19 04:37:08 +01:00
committed by lightningterror
parent cf33fb3ca1
commit 99f8d2fa84
3 changed files with 16 additions and 4 deletions
+10 -4
View File
@@ -589,8 +589,7 @@ bool GSFrame::ShowFullScreen(bool show, bool updateConfig)
return retval;
}
void GSFrame::CoreThread_OnResumed()
void GSFrame::UpdateTitleUpdateFreq()
{
#ifndef DISABLE_RECORDING
if (g_Conf->EmuOptions.EnableRecordingTools)
@@ -604,8 +603,15 @@ void GSFrame::CoreThread_OnResumed()
#else
m_timer_UpdateTitle.Start(TitleBarUpdateMs);
#endif
if( !IsShown() ) Show();
}
void GSFrame::CoreThread_OnResumed()
{
UpdateTitleUpdateFreq();
if (!IsShown())
{
Show();
}
}
void GSFrame::CoreThread_OnSuspended()
+1
View File
@@ -107,6 +107,7 @@ public:
bool Show( bool shown=true );
bool ShowFullScreen(bool show, bool updateConfig = true);
void UpdateTitleUpdateFreq();
protected:
void OnCloseWindow( wxCloseEvent& evt );
+5
View File
@@ -631,6 +631,11 @@ void MainEmuFrame::Menu_EnableRecordingTools_Click(wxCommandEvent& event)
}
g_Conf->EmuOptions.EnableRecordingTools = checked;
// Update GS Title Frequency
if (GSFrame* gsFrame = wxGetApp().GetGsFramePtr())
{
gsFrame->UpdateTitleUpdateFreq();
}
// Enable Recording Logs
ConsoleLogFrame* progLog = wxGetApp().GetProgramLog();
progLog->UpdateLogList();