From 15dc91f77954fdad9d28f68d6e04183324d12ed4 Mon Sep 17 00:00:00 2001 From: purian23 Date: Thu, 22 Jan 2026 18:15:00 -0500 Subject: [PATCH] dock: Fix dock launcher button persistence --- quickshell/Common/SessionData.qml | 5 +++++ quickshell/Common/settings/SessionSpec.js | 1 + quickshell/Modules/Dock/DockLauncherButton.qml | 2 +- quickshell/Services/AppSearchService.qml | 4 ++-- 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/quickshell/Common/SessionData.qml b/quickshell/Common/SessionData.qml index bffe7ac0..cb88e99b 100644 --- a/quickshell/Common/SessionData.qml +++ b/quickshell/Common/SessionData.qml @@ -758,6 +758,11 @@ Singleton { saveSettings(); } + function setDockLauncherPosition(position) { + dockLauncherPosition = position; + saveSettings(); + } + function addPinnedApp(appId) { if (!appId) return; diff --git a/quickshell/Common/settings/SessionSpec.js b/quickshell/Common/settings/SessionSpec.js index 7393f4c1..f0a862d4 100644 --- a/quickshell/Common/settings/SessionSpec.js +++ b/quickshell/Common/settings/SessionSpec.js @@ -39,6 +39,7 @@ var SPEC = { weatherCoordinates: { def: "40.7128,-74.0060" }, pinnedApps: { def: [] }, + dockLauncherPosition: { def: 0 }, hiddenTrayIds: { def: [] }, recentColors: { def: [] }, showThirdPartyPlugins: { def: false }, diff --git a/quickshell/Modules/Dock/DockLauncherButton.qml b/quickshell/Modules/Dock/DockLauncherButton.qml index 1ed47db6..cbe6f2cc 100644 --- a/quickshell/Modules/Dock/DockLauncherButton.qml +++ b/quickshell/Modules/Dock/DockLauncherButton.qml @@ -131,7 +131,7 @@ Item { const didReorder = wasDragging && targetIndex >= 0 && dockApps; if (didReorder) { - SessionData.dockLauncherPosition = targetIndex; + SessionData.setDockLauncherPosition(targetIndex); } longPressing = false; diff --git a/quickshell/Services/AppSearchService.qml b/quickshell/Services/AppSearchService.qml index 07b55732..b389e2bc 100644 --- a/quickshell/Services/AppSearchService.qml +++ b/quickshell/Services/AppSearchService.qml @@ -318,10 +318,10 @@ Singleton { PopoutService.focusOrToggleSettings(); return true; case "notepad": - PopoutService.openNotepad(); + PopoutService.toggleNotepad(); return true; case "processlist": - PopoutService.showProcessListModal(); + PopoutService.toggleProcessList(); return true; } return false;