mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-19 00:55:45 -04:00
CommonHostInterface: Move save state on exit logic to base class
This commit is contained in:
@ -812,10 +812,7 @@ void QtHostInterface::powerOffSystem()
|
||||
return;
|
||||
}
|
||||
|
||||
if (g_settings.save_state_on_exit)
|
||||
SaveResumeSaveState();
|
||||
|
||||
PowerOffSystem();
|
||||
PowerOffSystem(ShouldSaveResumeState());
|
||||
}
|
||||
|
||||
void QtHostInterface::powerOffSystemWithoutSaving()
|
||||
@ -827,7 +824,7 @@ void QtHostInterface::powerOffSystemWithoutSaving()
|
||||
return;
|
||||
}
|
||||
|
||||
PowerOffSystem();
|
||||
PowerOffSystem(false);
|
||||
}
|
||||
|
||||
void QtHostInterface::synchronousPowerOffSystem()
|
||||
|
Reference in New Issue
Block a user