Qt: Ignore rewind while loading/saving states

This commit is contained in:
yeah-its-gloria 2024-06-03 19:49:23 -04:00 committed by Vicki Pfau
parent cf959fe20e
commit 8b041e9a23
1 changed files with 5 additions and 0 deletions

View File

@ -1464,6 +1464,11 @@ void Window::setupMenu(QMenuBar* menubar) {
}, "emu");
auto rewindHeld = m_actions.addHeldAction(tr("Rewind (held)"), "holdRewind", [this](bool held) {
// Prevent rewinding while the load/save state window is active
if (held && this->m_stateWindow != nullptr) {
return;
}
if (m_controller) {
m_controller->setRewinding(held);
}