Qt: Fix main window closing on fullscreen shutdown

This commit is contained in:
Stenzek 2023-04-01 13:13:21 +10:00 committed by refractionpcsx2
parent 8a9df89bf6
commit e9a624ab54
1 changed files with 6 additions and 0 deletions

View File

@ -1146,12 +1146,18 @@ void MainWindow::updateEmulationActions(bool starting, bool running, bool stoppi
m_ui.actionToolsVideoCapture->setEnabled(running);
if (!running && m_ui.actionToolsVideoCapture->isChecked())
{
QSignalBlocker sb(m_ui.actionToolsVideoCapture);
m_ui.actionToolsVideoCapture->setChecked(false);
}
m_game_list_widget->setDisabled(starting && !running);
if (!starting && !running)
{
QSignalBlocker sb(m_ui.actionPause);
m_ui.actionPause->setChecked(false);
}
// scanning needs to be disabled while running
m_ui.actionScanForNewGames->setDisabled(starting_or_running || stopping);