diff options
| author | shuffle2 <godisgovernment@gmail.com> | 2016-10-02 22:06:26 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-10-02 22:06:26 -0700 |
| commit | 8107a19ddc963772143519ffa03bdcdb74ee923b (patch) | |
| tree | 76619bfe0e508a554855fecccf98179b37504a32 /Source/Core/DolphinWX/FrameTools.cpp | |
| parent | 0789499bf0b1fa30382c2ae6713089644eadf080 (diff) | |
| parent | cf0b4c9387bb613b20d170e5e034776653a87ce5 (diff) | |
Merge pull request #4048 from EmptyChaos/wx-cheat-notice
WX: ISOProperties: Add notice when cheats are disabled (Issue 9690)
Diffstat (limited to 'Source/Core/DolphinWX/FrameTools.cpp')
| -rw-r--r-- | Source/Core/DolphinWX/FrameTools.cpp | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/Source/Core/DolphinWX/FrameTools.cpp b/Source/Core/DolphinWX/FrameTools.cpp index d253446161..2ab6b9b45c 100644 --- a/Source/Core/DolphinWX/FrameTools.cpp +++ b/Source/Core/DolphinWX/FrameTools.cpp @@ -598,6 +598,20 @@ void CFrame::InitBitmaps() RecreateToolbar(); } +void CFrame::OpenGeneralConfiguration(int tab) +{ + CConfigMain config_main(this); + if (tab > -1) + config_main.SetSelectedTab(tab); + + HotkeyManagerEmu::Enable(false); + if (config_main.ShowModal() == wxID_OK) + m_GameListCtrl->Update(); + HotkeyManagerEmu::Enable(true); + + UpdateGUI(); +} + // Menu items // Start the game or change the disc. @@ -1312,12 +1326,7 @@ void CFrame::OnReset(wxCommandEvent& WXUNUSED(event)) void CFrame::OnConfigMain(wxCommandEvent& WXUNUSED(event)) { - CConfigMain ConfigMain(this); - HotkeyManagerEmu::Enable(false); - if (ConfigMain.ShowModal() == wxID_OK) - m_GameListCtrl->Update(); - HotkeyManagerEmu::Enable(true); - UpdateGUI(); + OpenGeneralConfiguration(); } void CFrame::OnConfigGFX(wxCommandEvent& WXUNUSED(event)) @@ -1330,12 +1339,7 @@ void CFrame::OnConfigGFX(wxCommandEvent& WXUNUSED(event)) void CFrame::OnConfigAudio(wxCommandEvent& WXUNUSED(event)) { - CConfigMain ConfigMain(this); - ConfigMain.SetSelectedTab(CConfigMain::ID_AUDIOPAGE); - HotkeyManagerEmu::Enable(false); - if (ConfigMain.ShowModal() == wxID_OK) - m_GameListCtrl->Update(); - HotkeyManagerEmu::Enable(true); + OpenGeneralConfiguration(CConfigMain::ID_AUDIOPAGE); } void CFrame::OnConfigControllers(wxCommandEvent& WXUNUSED(event)) |
