input-rec: disable the "Reset" option when a recording uses a savestate

This commit is contained in:
sonicfind 2022-09-23 13:06:38 -05:00 committed by refractionpcsx2
parent f699807cae
commit 5cd243f2c1
1 changed files with 4 additions and 4 deletions

View File

@ -1657,7 +1657,7 @@ void MainWindow::onInputRecNewActionTriggered()
QtHost::RunOnUIThread([&]() {
m_ui.actionInputRecNew->setEnabled(false);
m_ui.actionInputRecStop->setEnabled(true);
return;
m_ui.actionReset->setEnabled(!g_InputRecording.isTypeSavestate());
});
}
});
@ -1709,11 +1709,10 @@ void MainWindow::onInputRecPlayActionTriggered()
if (g_InputRecording.play(filename))
{
QtHost::RunOnUIThread([&]() {
m_ui.actionInputRecNew->setEnabled(false);
m_ui.actionInputRecStop->setEnabled(true);
return;
m_ui.actionReset->setEnabled(!g_InputRecording.isTypeSavestate());
});
m_ui.actionInputRecStop->setEnabled(true);
return;
}
});
}
@ -1728,6 +1727,7 @@ void MainWindow::onInputRecStopActionTriggered()
QtHost::RunOnUIThread([&]() {
m_ui.actionInputRecNew->setEnabled(true);
m_ui.actionInputRecStop->setEnabled(false);
m_ui.actionReset->setEnabled(true);
});
});
}