settings: added migration49 to delete the old 'launcher_app_usage.json' file

This commit is contained in:
Lemmy
2026-02-10 20:32:10 -05:00
parent a3429c3d77
commit 973608a4c2
3 changed files with 21 additions and 2 deletions
+17
View File
@@ -0,0 +1,17 @@
import QtQuick
import Quickshell
import qs.Commons
QtObject {
id: root
// Remove old launcher_app_usage.json (usage tracking moved to ShellState)
function migrate(adapter, logger, rawJson) {
logger.i("Settings", "Migrating settings to v49");
Quickshell.execDetached(["rm", "-f", Settings.cacheDir + "launcher_app_usage.json"]);
logger.i("Settings", "Removed old launcher_app_usage.json");
return true;
}
}
+3 -1
View File
@@ -22,7 +22,8 @@ QtObject {
45: migration45Component,
46: migration46Component,
47: migration47Component,
48: migration48Component
48: migration48Component,
49: migration49Component
})
// Migration components
@@ -42,4 +43,5 @@ QtObject {
property Component migration46Component: Migration46 {}
property Component migration47Component: Migration47 {}
property Component migration48Component: Migration48 {}
property Component migration49Component: Migration49 {}
}