Do not signal savestate if system is powered off

This commit is contained in:
PabloMK7 2026-07-09 14:36:19 +02:00
parent 303ba4fb4e
commit c8d84257fb

View File

@ -2935,6 +2935,10 @@ void GMainWindow::TriggerRotateScreens() {
}
void GMainWindow::OnSaveState() {
if (!system.IsPoweredOn()) {
return;
}
QAction* action = qobject_cast<QAction*>(sender());
ASSERT(action);
@ -2944,6 +2948,10 @@ void GMainWindow::OnSaveState() {
}
void GMainWindow::OnLoadState() {
if (!system.IsPoweredOn()) {
return;
}
QAction* action = qobject_cast<QAction*>(sender());
ASSERT(action);