mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-17 13:25:46 -04:00
Qt: Add shutdown without saving menu option
This commit is contained in:
@ -174,9 +174,6 @@ void CommonHostInterface::PowerOffSystem()
|
||||
if (System::IsShutdown())
|
||||
return;
|
||||
|
||||
if (g_settings.save_state_on_exit)
|
||||
SaveResumeSaveState();
|
||||
|
||||
HostInterface::PowerOffSystem();
|
||||
|
||||
if (InBatchMode())
|
||||
@ -1489,6 +1486,9 @@ void CommonHostInterface::RegisterGeneralHotkeys()
|
||||
}
|
||||
}
|
||||
|
||||
if (g_settings.save_state_on_exit)
|
||||
SaveResumeSaveState();
|
||||
|
||||
PowerOffSystem();
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user