gui: EE panel: fix restore-default to also restore EE-cache

The EE/VU config panels use hardcoded values to restore defaults, and
this patch does the same for the EE-cache checkbox.

This fixes GH #737
This commit is contained in:
Avi Halachmi (:avih) 2015-08-06 00:15:50 +03:00
parent 39ce8835f7
commit adf01ec668
1 changed files with 1 additions and 0 deletions

View File

@ -262,6 +262,7 @@ void Panels::CpuPanelEE::OnRestoreDefaults(wxCommandEvent &evt)
{
m_panel_RecEE->SetSelection( m_panel_RecEE->GetButton(1)->IsEnabled() ? 1 : 0 );
m_panel_RecIOP->SetSelection( m_panel_RecIOP->GetButton(1)->IsEnabled() ? 1 : 0 );
m_check_EECacheEnable->SetValue(0);
if( BaseAdvancedCpuOptions* opts = (BaseAdvancedCpuOptions*)FindWindowByName(L"AdvancedOptionsFPU") )
opts->RestoreDefaults();