1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-04-09 15:22:13 -04:00

launcher v2: add visibility guards

This commit is contained in:
bbedward
2026-02-10 17:40:41 -05:00
parent 081b15e24c
commit 1cdec5d687
3 changed files with 13 additions and 0 deletions

View File

@@ -10,6 +10,7 @@ Singleton {
id: root
property var appUsageRanking: {}
property bool _saving: false
Component.onCompleted: {
loadSettings();
@@ -59,7 +60,9 @@ Singleton {
}
appUsageRanking = currentRanking;
_saving = true;
saveSettings();
_saving = false;
}
function getRankedApps() {
@@ -97,7 +100,9 @@ Singleton {
if (hasChanges) {
appUsageRanking = currentRanking;
_saving = true;
saveSettings();
_saving = false;
}
}
@@ -109,6 +114,8 @@ Singleton {
blockWrites: true
watchChanges: true
onLoaded: {
if (root._saving)
return;
parseSettings(settingsFile.text());
}
onLoadFailed: error => {}