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