mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
IPC call to enable/disable/toggle wallpaper random automation. Fix #378
This commit is contained in:
@@ -115,6 +115,7 @@ Singleton {
|
||||
if (!device)
|
||||
return false
|
||||
|
||||
|
||||
/*
|
||||
Paired
|
||||
Means you’ve successfully exchanged keys with the device.
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user