mirror of https://github.com/PCSX2/pcsx2.git
gs: ensure the frame is hidden if not in use
This commit is contained in:
parent
8d56332993
commit
a3a700eeaf
|
@ -91,6 +91,7 @@ void MainEmuFrame::Menu_PADSettings_Click(wxCommandEvent& event)
|
|||
void MainEmuFrame::Menu_GSSettings_Click(wxCommandEvent& event)
|
||||
{
|
||||
ScopedCoreThreadPause paused_core;
|
||||
bool is_frame_closed = (wxGetApp().GetGsFramePtr() == nullptr);
|
||||
freezeData fP = {0, nullptr};
|
||||
MTGS_FreezeData sstate = {&fP, 0};
|
||||
GetMTGS().Freeze(FREEZE_SIZE, sstate);
|
||||
|
@ -100,6 +101,8 @@ void MainEmuFrame::Menu_GSSettings_Click(wxCommandEvent& event)
|
|||
GSconfigure();
|
||||
GetMTGS().Freeze(FREEZE_LOAD, sstate);
|
||||
delete[] fP.data;
|
||||
if (is_frame_closed)
|
||||
wxGetApp().GetGsFramePtr()->Hide();
|
||||
paused_core.AllowResume();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue