multi-bar: smarter migration

This commit is contained in:
ItsLemmy
2025-11-04 23:12:36 -05:00
parent c47830f404
commit 8c8ee2def3
+7 -4
View File
@@ -14,7 +14,7 @@ Singleton {
readonly property alias data: adapter
property bool isLoaded: false
property bool directoriesCreated: false
property int settingsVersion: 18
property int settingsVersion: 19
property bool isDebug: Quickshell.env("NOCTALIA_DEBUG") === "1"
// Define our app directories
@@ -740,9 +740,6 @@ Singleton {
return
}
// Migrate old bar configuration to per-monitor structure
migrateBarSettingsToPerMonitor()
// TEMP - disable Open panels on overlay which used to be true by default.
if (adapter.settingsVersion < 18) {
try {
@@ -755,6 +752,12 @@ Singleton {
}
}
// TEMP
if (adapter.settingsVersion < 19) {
// Migrate old bar configuration to per-monitor structure
migrateBarSettingsToPerMonitor()
}
const sections = ["left", "center", "right"]
// Upgrade widgets for all monitor configurations