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

Simplify preferences

This commit is contained in:
bbedward
2025-07-12 10:58:06 -04:00
parent af0522ada5
commit 2a29f2a0f2
2 changed files with 42 additions and 72 deletions

View File

@@ -1,4 +1,5 @@
import QtQuick
import QtCore
import Quickshell
import Quickshell.Io
pragma Singleton
@@ -7,7 +8,7 @@ pragma ComponentBehavior: Bound
Singleton {
id: root
property string configDir: (Quickshell.env["XDG_CONFIG_HOME"] || Quickshell.env["HOME"] + "/.config") + "/DankMaterialShell"
property string configDir: StandardPaths.writableLocation(StandardPaths.ConfigLocation) + "/DankMaterialShell"
property string recentAppsFile: configDir + "/recentApps.json"
property int maxRecentApps: 10
property var recentApps: []