1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-07 22:15:38 -05:00

config: restructure, migration system, cache data

This commit is contained in:
bbedward
2025-10-14 15:07:28 -04:00
parent 9c1a89d786
commit 5bb5cd296d
13 changed files with 1081 additions and 782 deletions

View File

@@ -48,15 +48,17 @@ DankModal {
}
function getLastPath() {
const lastPath = browserType === "wallpaper" ? SessionData.wallpaperLastPath : browserType === "profile" ? SessionData.profileLastPath : ""
const lastPath = browserType === "wallpaper" ? CacheData.wallpaperLastPath : browserType === "profile" ? CacheData.profileLastPath : ""
return (lastPath && lastPath !== "") ? lastPath : homeDir
}
function saveLastPath(path) {
if (browserType === "wallpaper") {
SessionData.setWallpaperLastPath(path)
CacheData.wallpaperLastPath = path
CacheData.saveCache()
} else if (browserType === "profile") {
SessionData.setProfileLastPath(path)
CacheData.profileLastPath = path
CacheData.saveCache()
}
}