mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2026-07-11 02:14:43 -06:00
Do not signal savestate if system is powered off
This commit is contained in:
parent
303ba4fb4e
commit
c8d84257fb
@ -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);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user