mirror of
https://github.com/izzy2lost/dolphin.git
synced 2026-06-19 01:16:48 -07:00
Clean up screen saver inhibition and apply setting change immediately.
This commit is contained in:
@@ -107,6 +107,9 @@ bool PlatformWin32::Init()
|
||||
ProcessEvents();
|
||||
}
|
||||
|
||||
if (Config::Get(Config::MAIN_DISABLE_SCREENSAVER))
|
||||
SetThreadExecutionState(ES_CONTINUOUS | ES_DISPLAY_REQUIRED | ES_SYSTEM_REQUIRED);
|
||||
|
||||
UpdateWindowPosition();
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user