gs: ensure gspanel is correctly defined as in use when paused

This commit is contained in:
Gauvain 'GovanifY' Roussel-Tarbouriech 2021-06-20 03:44:37 +02:00 committed by Kojin
parent a3a700eeaf
commit b06468e268
1 changed files with 2 additions and 0 deletions

View File

@ -92,6 +92,8 @@ void MainEmuFrame::Menu_GSSettings_Click(wxCommandEvent& event)
{
ScopedCoreThreadPause paused_core;
bool is_frame_closed = (wxGetApp().GetGsFramePtr() == nullptr);
if (!is_frame_closed)
is_frame_closed = !wxGetApp().GetGsFramePtr()->IsShown();
freezeData fP = {0, nullptr};
MTGS_FreezeData sstate = {&fP, 0};
GetMTGS().Freeze(FREEZE_SIZE, sstate);