mirror of https://github.com/PCSX2/pcsx2.git
input-rec: disable the "Reset" option when a recording uses a savestate
This commit is contained in:
parent
f699807cae
commit
5cd243f2c1
|
@ -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);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue