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:
@@ -758,6 +758,11 @@ Singleton {
|
||||
saveSettings();
|
||||
}
|
||||
|
||||
function setDockLauncherPosition(position) {
|
||||
dockLauncherPosition = position;
|
||||
saveSettings();
|
||||
}
|
||||
|
||||
function addPinnedApp(appId) {
|
||||
if (!appId)
|
||||
return;
|
||||
|
||||
@@ -39,6 +39,7 @@ var SPEC = {
|
||||
weatherCoordinates: { def: "40.7128,-74.0060" },
|
||||
|
||||
pinnedApps: { def: [] },
|
||||
dockLauncherPosition: { def: 0 },
|
||||
hiddenTrayIds: { def: [] },
|
||||
recentColors: { def: [] },
|
||||
showThirdPartyPlugins: { def: false },
|
||||
|
||||
@@ -131,7 +131,7 @@ Item {
|
||||
const didReorder = wasDragging && targetIndex >= 0 && dockApps;
|
||||
|
||||
if (didReorder) {
|
||||
SessionData.dockLauncherPosition = targetIndex;
|
||||
SessionData.setDockLauncherPosition(targetIndex);
|
||||
}
|
||||
|
||||
longPressing = false;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user