Probe the wallpaper provider once configuration loads

The provider probe ran only when the target monitor changed, and the
monitor resolves before the configuration loads, so the first probe was
skipped and "auto" never resolved to the native background until the
picker opened. Probe again once the configured backend is known and
whenever it changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
mxandClaude Opus 5.5 committed 2026-10-07 23:18:52 +02:00
1 parent 1d54aed0b8
commit 2b49d96b05
1 file changed
+4
+4
View File
@@ -72,6 +72,10 @@ Singleton {
applyJob.start(req);
}
onMonitorChanged: refresh()
// The monitor resolves before the configuration loads, so also probe once the
// configured backend is known (startup) and whenever it changes.
readonly property string configuredBackend: ConfigService.ready ? ConfigService.data.wallpaper.backend : ""
onConfiguredBackendChanged: refresh()
ProviderJob {
id: probeJob
onFinished: (request, result) => {