From 64fcb899f032562d0f45ddb3b770eb5f40a063ae Mon Sep 17 00:00:00 2001 From: samzong Date: Sun, 29 Dec 2024 12:09:48 +0800 Subject: [PATCH] make sleepmanager is enable when app startup Signed-off-by: samzong --- Managers/SleepManager.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Managers/SleepManager.swift b/Managers/SleepManager.swift index 7e28862..4efb5fe 100644 --- a/Managers/SleepManager.swift +++ b/Managers/SleepManager.swift @@ -9,7 +9,7 @@ import Foundation import IOKit.pwr_mgt class SleepManager: ObservableObject { - @Published var preventSleep = false { + @Published var preventSleep = true { didSet { updateSleepAssertion() }