Qt: Ensure fullscreen UI is stopped on exiting

Backport from: 533022bb7d
This commit is contained in:
KamFretoZ 2024-08-23 00:09:46 +07:00 committed by lightningterror
parent 5536342f9d
commit 973c522756
1 changed files with 5 additions and 1 deletions

View File

@ -586,6 +586,10 @@ void MainWindow::quit()
QApplication::processEvents(QEventLoop::ExcludeUserInputEvents, 1);
}
// Big picture might still be active.
if (m_display_created)
g_emu_thread->stopFullscreenUI();
// Ensure subwindows are removed before quitting. That way the log window cancelling
// the close event won't cancel the quit process.
destroySubWindows();
@ -1360,7 +1364,7 @@ void MainWindow::onGameListEntryContextMenuRequested(const QPoint& point)
{
connect(menu.addAction(tr("Check Wiki Page")), &QAction::triggered, [this, entry]() { goToWikiPage(entry); });
}
menu.addSeparator();
if (!s_vm_valid)