mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-05-12 23:32:50 -04:00
fix(IPC): Remove recent duplicate IPC bindings
This commit is contained in:
@@ -1190,6 +1190,17 @@ Item {
|
|||||||
return "SYSTEMUPDATER_CLOSE_SUCCESS";
|
return "SYSTEMUPDATER_CLOSE_SUCCESS";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function updatestatus(): string {
|
||||||
|
if (SystemUpdateService.isChecking) {
|
||||||
|
return "ERROR: already checking";
|
||||||
|
}
|
||||||
|
if (SystemUpdateService.backends.length === 0) {
|
||||||
|
return "ERROR: no package manager available";
|
||||||
|
}
|
||||||
|
SystemUpdateService.checkForUpdates();
|
||||||
|
return "SUCCESS: Now checking...";
|
||||||
|
}
|
||||||
|
|
||||||
target: "systemupdater"
|
target: "systemupdater"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -214,18 +214,4 @@ FloatingWindow {
|
|||||||
targetWindow: root
|
targetWindow: root
|
||||||
}
|
}
|
||||||
|
|
||||||
IpcHandler {
|
|
||||||
target: "workspace-rename"
|
|
||||||
|
|
||||||
function open(): string {
|
|
||||||
const ws = NiriService.workspaces[NiriService.focusedWorkspaceId];
|
|
||||||
show(ws?.name || "");
|
|
||||||
return "WORKSPACE_RENAME_MODAL_OPENED";
|
|
||||||
}
|
|
||||||
|
|
||||||
function close(): string {
|
|
||||||
hide();
|
|
||||||
return "WORKSPACE_RENAME_MODAL_CLOSED";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -192,18 +192,4 @@ Singleton {
|
|||||||
DMSService.sysupdateRelease(null);
|
DMSService.sysupdateRelease(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
IpcHandler {
|
|
||||||
target: "systemupdater"
|
|
||||||
|
|
||||||
function updatestatus(): string {
|
|
||||||
if (root.isChecking) {
|
|
||||||
return "ERROR: already checking";
|
|
||||||
}
|
|
||||||
if (root.backends.length === 0) {
|
|
||||||
return "ERROR: no package manager available";
|
|
||||||
}
|
|
||||||
root.checkForUpdates();
|
|
||||||
return "SUCCESS: Now checking...";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user