Qt: Fix fullscreen UI shutdown on language change

This commit is contained in:
Stenzek 2025-07-19 17:28:35 +10:00
parent 278614a415
commit ad53fc2345
No known key found for this signature in database

View File

@ -2654,8 +2654,11 @@ void MainWindow::closeEvent(QCloseEvent* event)
if (!s_system_valid)
{
QtUtils::SaveWindowGeometry("MainWindow", this);
if (s_fullscreen_ui_started)
// surfaceless for language change
if (s_fullscreen_ui_started && !g_emu_thread->isSurfaceless())
g_emu_thread->stopFullscreenUI();
destroySubWindows();
QMainWindow::closeEvent(event);
return;