diff --git a/Core/Config.cpp b/Core/Config.cpp index d95ed2ad7c..6c64e79b06 100644 --- a/Core/Config.cpp +++ b/Core/Config.cpp @@ -309,6 +309,7 @@ static ConfigSetting generalSettings[] = { ConfigSetting("WindowWidth", &g_Config.iWindowWidth, 0), // 0 will be automatically reset later (need to do the AdjustWindowRect dance). ConfigSetting("WindowHeight", &g_Config.iWindowHeight, 0), ConfigSetting("PauseOnLostFocus", &g_Config.bPauseOnLostFocus, false), + ConfigSetting("PauseWhenMinimized", &g_Config.bPauseWhenMinimized, true), #endif ConfigSetting("DumpDecryptedEboots", &g_Config.bDumpDecryptedEboot, false), ConfigSetting(false), diff --git a/Core/Config.h b/Core/Config.h index 1c9a16e3f6..0dab875025 100644 --- a/Core/Config.h +++ b/Core/Config.h @@ -72,6 +72,7 @@ public: bool bTopMost; std::string sFont; bool bIgnoreWindowsKey; + bool bPauseWhenMinimized; #endif #if !defined(MOBILE_DEVICE) diff --git a/Windows/WndMainWindow.cpp b/Windows/WndMainWindow.cpp index 39df566243..67a6661699 100644 --- a/Windows/WndMainWindow.cpp +++ b/Windows/WndMainWindow.cpp @@ -1097,7 +1097,7 @@ namespace MainWindow ResizeDisplay(); break; case SIZE_MINIMIZED: - Core_NotifyWindowHidden(true); + Core_NotifyWindowHidden(g_Config.bPauseWhenMinimized); break; default: break;