mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-19 06:55:45 -04:00
Qt: Add shutdown without saving menu option
This commit is contained in:
@ -673,7 +673,11 @@ void SDLHostInterface::DrawMainMenuBar()
|
||||
|
||||
if (ImGui::MenuItem("Power Off", nullptr, false, system_enabled))
|
||||
{
|
||||
RunLater([this]() { DestroySystem(); });
|
||||
RunLater([this]() {
|
||||
if (g_settings.save_state_on_exit)
|
||||
SaveResumeSaveState();
|
||||
PowerOffSystem();
|
||||
});
|
||||
ClearImGuiFocus();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user