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

ipc/focus: add focusOrToggle to settings and processlist

This commit is contained in:
bbedward
2025-12-01 23:16:06 -05:00
parent 89aa146845
commit 344c4f9385
8 changed files with 66 additions and 8 deletions

View File

@@ -79,6 +79,14 @@ Item {
return "PROCESSLIST_TOGGLE_SUCCESS";
}
function focusOrToggle(): string {
root.processListModalLoader.active = true;
if (root.processListModalLoader.item)
root.processListModalLoader.item.focusOrToggle();
return "PROCESSLIST_FOCUS_OR_TOGGLE_SUCCESS";
}
target: "processlist"
}
@@ -598,6 +606,11 @@ Item {
return "SETTINGS_TOGGLE_SUCCESS";
}
function focusOrToggle(): string {
PopoutService.focusOrToggleSettings();
return "SETTINGS_FOCUS_OR_TOGGLE_SUCCESS";
}
function get(key: string): string {
return JSON.stringify(SettingsData?.[key])
}