Skip to content

Commit

Permalink
Rework screensaver_stop_navigation_path
Browse files Browse the repository at this point in the history
  • Loading branch information
j-a-n committed Jan 14, 2025
1 parent c48aa21 commit 75c423e
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions wallpanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ class CameraMotionDetection {
}
}

const version = "4.33.0";
const version = "4.34.0";
const defaultConfig = {
enabled: false,
enabled_on_tabs: [],
Expand Down Expand Up @@ -2565,7 +2565,7 @@ class WallpanelView extends HuiView {
navigate(config.screensaver_stop_navigation_path);
setTimeout(() => {
skipDisableScreensaverOnLocationChanged = false;
}, 250);
}, 5000);
}
if (config.screensaver_stop_close_browser_mod_popup) {
let bmp = getActiveBrowserModPopup();
Expand Down Expand Up @@ -2911,10 +2911,14 @@ function locationChanged() {
wallpanel &&
wallpanel.screensaverRunning &&
wallpanel.screensaverRunning() &&
config.stop_screensaver_on_location_change &&
!skipDisableScreensaverOnLocationChanged
config.stop_screensaver_on_location_change
) {
wallpanel.stopScreensaver();
if (skipDisableScreensaverOnLocationChanged) {
skipDisableScreensaverOnLocationChanged = false;
}
else {
wallpanel.stopScreensaver();
}
}

let panel = null;
Expand Down

0 comments on commit 75c423e

Please sign in to comment.