Wallpapers: moved persistent data to their own file in ~/.cache/noctalia/wallpapers.json !! no migration path, user will have to set their wallpaper at least once !!

This commit is contained in:
ItsLemmy
2025-11-29 11:22:53 -05:00
parent 993b6bc422
commit 30db679207
4 changed files with 59 additions and 55 deletions
+3 -15
View File
@@ -61,9 +61,6 @@ Singleton {
schemes: [],
timestamp: 0
})
// WallpaperService: current wallpapers per screen
property var wallpapers: ({})
}
onLoaded: {
@@ -86,7 +83,7 @@ Singleton {
// Debounced save timer
Timer {
id: saveTimer
interval: 300
interval: 500
onTriggered: performSave()
}
@@ -174,16 +171,6 @@ Singleton {
};
}
// Wallpapers (WallpaperService)
function setWallpapers(wallpapersData) {
adapter.wallpapers = wallpapersData;
save();
}
function getWallpapers() {
return adapter.wallpapers || {};
}
// -----------------------------------------------------
function buildStateSnapshot() {
try {
@@ -196,8 +183,9 @@ Singleton {
doNotDisturb: NotificationService.doNotDisturb,
noctaliaPerformanceMode: PowerProfileService.noctaliaPerformanceMode,
barVisible: BarService.isVisible,
wallpapers: WallpaperService.currentWallpapers || {},
// -------------
display: shellStateData.display || {},
wallpapers: shellStateData.wallpapers || {},
notificationsState: shellStateData.notificationsState || {},
changelogState: shellStateData.changelogState || {},
colorSchemesList: shellStateData.colorSchemesList || {}