1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-24 21:42:51 -05:00

dock: Fix dock launcher button persistence

This commit is contained in:
purian23
2026-01-22 18:15:00 -05:00
parent dd3d2908a2
commit 15dc91f779
4 changed files with 9 additions and 3 deletions

View File

@@ -758,6 +758,11 @@ Singleton {
saveSettings(); saveSettings();
} }
function setDockLauncherPosition(position) {
dockLauncherPosition = position;
saveSettings();
}
function addPinnedApp(appId) { function addPinnedApp(appId) {
if (!appId) if (!appId)
return; return;

View File

@@ -39,6 +39,7 @@ var SPEC = {
weatherCoordinates: { def: "40.7128,-74.0060" }, weatherCoordinates: { def: "40.7128,-74.0060" },
pinnedApps: { def: [] }, pinnedApps: { def: [] },
dockLauncherPosition: { def: 0 },
hiddenTrayIds: { def: [] }, hiddenTrayIds: { def: [] },
recentColors: { def: [] }, recentColors: { def: [] },
showThirdPartyPlugins: { def: false }, showThirdPartyPlugins: { def: false },

View File

@@ -131,7 +131,7 @@ Item {
const didReorder = wasDragging && targetIndex >= 0 && dockApps; const didReorder = wasDragging && targetIndex >= 0 && dockApps;
if (didReorder) { if (didReorder) {
SessionData.dockLauncherPosition = targetIndex; SessionData.setDockLauncherPosition(targetIndex);
} }
longPressing = false; longPressing = false;

View File

@@ -318,10 +318,10 @@ Singleton {
PopoutService.focusOrToggleSettings(); PopoutService.focusOrToggleSettings();
return true; return true;
case "notepad": case "notepad":
PopoutService.openNotepad(); PopoutService.toggleNotepad();
return true; return true;
case "processlist": case "processlist":
PopoutService.showProcessListModal(); PopoutService.toggleProcessList();
return true; return true;
} }
return false; return false;