dock: add back enable config option now that it works properly

This commit is contained in:
end-4
2025-07-02 13:44:05 +02:00
parent c00d2a5b50
commit 59ef5ac390
2 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -132,10 +132,11 @@ Singleton {
} }
property JsonObject dock: JsonObject { property JsonObject dock: JsonObject {
property bool enable: false
property real height: 60 property real height: 60
property real hoverRegionHeight: 3 property real hoverRegionHeight: 3
property bool pinnedOnStartup: false property bool pinnedOnStartup: false
property bool hoverToReveal: false // When false, only reveals on empty workspace property bool hoverToReveal: true // When false, only reveals on empty workspace
property list<string> pinnedApps: [ // IDs of pinned entries property list<string> pinnedApps: [ // IDs of pinned entries
"org.kde.dolphin", "kitty",] "org.kde.dolphin", "kitty",]
} }
+2 -2
View File
@@ -32,7 +32,7 @@ ShellRoot {
property bool enableBar: true property bool enableBar: true
property bool enableBackgroundWidgets: true property bool enableBackgroundWidgets: true
property bool enableCheatsheet: true property bool enableCheatsheet: true
property bool enableDock: false property bool enableDock: true
property bool enableMediaControls: true property bool enableMediaControls: true
property bool enableNotificationPopup: true property bool enableNotificationPopup: true
property bool enableOnScreenDisplayBrightness: true property bool enableOnScreenDisplayBrightness: true
@@ -55,7 +55,7 @@ ShellRoot {
LazyLoader { active: enableBar; component: Bar {} } LazyLoader { active: enableBar; component: Bar {} }
LazyLoader { active: enableBackgroundWidgets; component: BackgroundWidgets {} } LazyLoader { active: enableBackgroundWidgets; component: BackgroundWidgets {} }
LazyLoader { active: enableCheatsheet; component: Cheatsheet {} } LazyLoader { active: enableCheatsheet; component: Cheatsheet {} }
LazyLoader { active: enableDock; component: Dock {} } LazyLoader { active: enableDock && Config.options.dock.enable; component: Dock {} }
LazyLoader { active: enableMediaControls; component: MediaControls {} } LazyLoader { active: enableMediaControls; component: MediaControls {} }
LazyLoader { active: enableNotificationPopup; component: NotificationPopup {} } LazyLoader { active: enableNotificationPopup; component: NotificationPopup {} }
LazyLoader { active: enableOnScreenDisplayBrightness; component: OnScreenDisplayBrightness {} } LazyLoader { active: enableOnScreenDisplayBrightness; component: OnScreenDisplayBrightness {} }