1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-27 23:12:49 -05:00

settings: migrate vpnLastConnected to session

fixes #1488
This commit is contained in:
bbedward
2026-01-24 16:08:15 -05:00
parent 03cfa55e0b
commit 4e3b24ffbb
7 changed files with 102 additions and 73 deletions

View File

@@ -13,7 +13,7 @@ import "settings/SessionStore.js" as Store
Singleton {
id: root
readonly property int sessionConfigVersion: 2
readonly property int sessionConfigVersion: 3
readonly property bool isGreeterMode: Quickshell.env("DMS_RUN_GREETER") === "1" || Quickshell.env("DMS_RUN_GREETER") === "true"
property bool _parseError: false
@@ -109,6 +109,8 @@ Singleton {
property var appOverrides: ({})
property bool searchAppActions: true
property string vpnLastConnected: ""
Component.onCompleted: {
if (!isGreeterMode) {
loadSettings();
@@ -1003,6 +1005,11 @@ Singleton {
saveSettings();
}
function setVpnLastConnected(uuid) {
vpnLastConnected = uuid || "";
saveSettings();
}
function syncWallpaperForCurrentMode() {
if (!perModeWallpaper)
return;