gs: ensure closegspanel is closed after suspend, in sysexecutor

This commit is contained in:
Gauvain 'GovanifY' Roussel-Tarbouriech 2021-06-16 14:36:11 +02:00 committed by Kojin
parent 1e84b00126
commit 8e52dc1e22
1 changed files with 2 additions and 2 deletions

View File

@ -595,13 +595,13 @@ void SysMtgsThread::CloseGS()
if (!m_Opened || GSDump::isRunning) if (!m_Opened || GSDump::isRunning)
return; return;
m_Opened = false; m_Opened = false;
Suspend(); Suspend();
sApp.CloseGsPanel();
} }
void SysMtgsThread::OnSuspendInThread() void SysMtgsThread::OnSuspendInThread()
{ {
GSclose(); GSclose();
sApp.CloseGsPanel();
GetSysExecutorThread().PostEvent(new SysExecEvent_InvokeMtgsThreadMethod(&SysMtgsThread::CloseGS)); GetSysExecutorThread().PostEvent(new SysExecEvent_InvokeMtgsThreadMethod(&SysMtgsThread::CloseGS));
_parent::OnSuspendInThread(); _parent::OnSuspendInThread();
} }