FullscreenUI: Don't override existing window in PauseAndOpenMenuFromCoreThread()

pull/3745/head
Stenzek 4 months ago
parent cdb26ee7b5
commit 590605b8d4
No known key found for this signature in database

@ -310,6 +310,9 @@ void FullscreenUI::PauseAndOpenMenuFromCoreThread(void (*callback)())
const bool was_paused = System::IsPaused();
VideoThread::RunOnThread([callback, was_paused]() {
if (s_locals.current_main_window != MainWindowType::None)
return;
Initialize();
if (!CanCurrentMainWindowStack() || !SetPendingMainWindowSwitch())
return;

Loading…
Cancel
Save