mirror of
https://github.com/libretro/pcsx2.git
synced 2025-02-08 18:57:54 +00:00
gs: fix freeze on close all windows
This commit is contained in:
parent
7597ac12b6
commit
483f28044b
@ -36,6 +36,8 @@
|
||||
#include "Recording/InputRecordingControls.h"
|
||||
#endif
|
||||
|
||||
extern std::atomic_bool init_gspanel;
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
wxMenu* MainEmuFrame::MakeStatesSubMenu(int baseid, int loadBackupId) const
|
||||
{
|
||||
@ -154,6 +156,10 @@ bool MainEmuFrame::Destroy()
|
||||
//
|
||||
void MainEmuFrame::OnCloseWindow(wxCloseEvent& evt)
|
||||
{
|
||||
// the main thread is busy suspending everything, so let's not try to call it
|
||||
// when closing the emulator
|
||||
init_gspanel = false;
|
||||
|
||||
if (IsBeingDeleted())
|
||||
return;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user