qt: Rework ui pause update into a slot for thread safety

This commit is contained in:
cold-brewed
2022-10-29 09:09:30 -04:00
parent c798caa686
commit e4a4549e3f
3 changed files with 5 additions and 5 deletions

View File

@@ -366,7 +366,7 @@ plat_pause(int p)
ui_window_title(oldtitle);
}
discord_update_activity(dopause);
main_window->setUiPauseState(p);
QTimer::singleShot(0, main_window, &MainWindow::updateUiPauseState);
#ifdef Q_OS_WINDOWS
if (source_hwnd)