Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion Wallpaper.qml
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,14 @@ Item {

function reloadConfig() {
if (!root.pluginDir || configReader.running) return
//: pluginDir arrives after the service is constructed, and this runs from
//: its change handler -- before the command binding above has been
//: re-evaluated. Starting the process there would run the ["true"]
//: placeholder, collect nothing, and leave every output on the theme
//: background until wallpapers.json was next written. Set the command
//: outright so the read is against the path, not against whichever
//: binding pass got there first.
configReader.command = [root.pluginDir + "/read-config.sh", root.configPath]
configReader.running = true
}

Expand Down Expand Up @@ -203,7 +211,7 @@ Item {
target: "displaywright"

function reload(): string {
configFile.reload()
root.reloadConfig()
root.refreshSpanBox()
return "ok"
}
Expand Down