From c8d84257fb23da20423b8565b01f9d6a9a678682 Mon Sep 17 00:00:00 2001 From: PabloMK7 Date: Thu, 9 Jul 2026 14:36:19 +0200 Subject: [PATCH] Do not signal savestate if system is powered off --- src/citra_qt/citra_qt.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/citra_qt/citra_qt.cpp b/src/citra_qt/citra_qt.cpp index f157f64c7..d36eadf95 100644 --- a/src/citra_qt/citra_qt.cpp +++ b/src/citra_qt/citra_qt.cpp @@ -2935,6 +2935,10 @@ void GMainWindow::TriggerRotateScreens() { } void GMainWindow::OnSaveState() { + if (!system.IsPoweredOn()) { + return; + } + QAction* action = qobject_cast(sender()); ASSERT(action); @@ -2944,6 +2948,10 @@ void GMainWindow::OnSaveState() { } void GMainWindow::OnLoadState() { + if (!system.IsPoweredOn()) { + return; + } + QAction* action = qobject_cast(sender()); ASSERT(action);