IPC call to enable/disable/toggle wallpaper random automation. Fix #378

This commit is contained in:
ItsLemmy
2025-09-27 18:22:57 -04:00
parent c1c91edb6c
commit 92460fc5c3
2 changed files with 11 additions and 0 deletions
+1
View File
@@ -115,6 +115,7 @@ Singleton {
if (!device)
return false
/*
Paired
Means youve successfully exchanged keys with the device.
+10
View File
@@ -172,5 +172,15 @@ Item {
}
WallpaperService.changeWallpaper(path, screen)
}
function toggleAutomation() {
Settings.data.wallpaper.randomEnabled = !Settings.data.wallpaper.randomEnabled
}
function disableAutomation() {
Settings.data.wallpaper.randomEnabled = false
}
function enableAutomation() {
Settings.data.wallpaper.randomEnabled = true
}
}
}