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:
@@ -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;
|
||||||
|
|||||||
@@ -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 },
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user