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

This commit is contained in:
Tyler Wilding 2020-12-29 18:19:27 -05:00 committed by lightningterror
parent cf33fb3ca1
commit 99f8d2fa84
3 changed files with 16 additions and 4 deletions

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()

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 );

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();