gs: ensure closegspanel is closed after suspend, in sysexecutor

This commit is contained in:
Gauvain 'GovanifY' Roussel-Tarbouriech authored and Kojin committed 2021-07-03 18:16:11 -04:00
1 parent 1e84b00126
commit 8e52dc1e22
1 file changed
+2 -2
+2 -2
View File
@@ -595,13 +595,13 @@ void SysMtgsThread::CloseGS()
if (!m_Opened || GSDump::isRunning)
return;
m_Opened = false;
Suspend();
Suspend();
sApp.CloseGsPanel();
}
void SysMtgsThread::OnSuspendInThread()
{
GSclose();
sApp.CloseGsPanel();
GetSysExecutorThread().PostEvent(new SysExecEvent_InvokeMtgsThreadMethod(&SysMtgsThread::CloseGS));
_parent::OnSuspendInThread();
}