1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-24 13:32:50 -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();
}
function setDockLauncherPosition(position) {
dockLauncherPosition = position;
saveSettings();
}
function addPinnedApp(appId) {
if (!appId)
return;

View File

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

View File

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

View File

@@ -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;