refactor: move preventsleep option into CoreArgs
This commit is contained in:
committed by
Chris Rizzitello
parent
a8348b1ccb
commit
c2ee366e23
@ -6,6 +6,8 @@
|
||||
* SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
|
||||
*/
|
||||
|
||||
#include "common/Settings.h" // must include first
|
||||
|
||||
#include "platform/XWindowsScreen.h"
|
||||
|
||||
#include "arch/Arch.h"
|
||||
@ -141,7 +143,7 @@ XWindowsScreen::XWindowsScreen(
|
||||
}
|
||||
|
||||
// disable sleep if the flag is set
|
||||
if (App::instance().argsBase().m_preventSleep) {
|
||||
if (Settings::value(Settings::Core::PreventSleep).toBool()) {
|
||||
m_powerManager.disableSleep();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user