fix(wake-lock): allow display sleep during active work
Prevent idle system sleep on supported desktop runtimes without intentionally keeping the display awake. Narrow wake-lock activation to true active work states and drop the web screen-wake fallback where the platform cannot provide system-sleep-only behavior.
This commit is contained in:
@@ -145,8 +145,8 @@ fn wake_lock_start(
|
||||
config: Option<WakeLockConfig>,
|
||||
) -> Result<(), String> {
|
||||
let config = config.unwrap_or(WakeLockConfig {
|
||||
display: true,
|
||||
idle: false,
|
||||
display: false,
|
||||
idle: true,
|
||||
sleep: false,
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user