mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-10-22 19:24:01 -04:00
wallpaper: push the cycling config when the service is created (#3874)
port 2.0
(cherry picked from commit 900e6110d9)
This commit is contained in:
@@ -95,6 +95,12 @@ Singleton {
|
||||
}
|
||||
}
|
||||
|
||||
// Created late from the async DMSShell loader, after loaded and capabilitiesReceived may have fired.
|
||||
Component.onCompleted: {
|
||||
if (SessionData._hasLoaded)
|
||||
updateCyclingState();
|
||||
}
|
||||
|
||||
function updateCyclingState() {
|
||||
cyclingActive = serverSchedulingAvailable && (SessionData.wallpaperCyclingEnabled || SessionData.perMonitorWallpaper);
|
||||
if (!cyclingActive && !_lastPushedEnabled)
|
||||
|
||||
Reference in New Issue
Block a user