From b75453c7d6ad12ccd3350428b57b5ec8a00fc423 Mon Sep 17 00:00:00 2001 From: purian23 Date: Fri, 8 May 2026 23:13:40 -0400 Subject: [PATCH] fix(IPC): Remove recent duplicate IPC bindings --- quickshell/DMSShellIPC.qml | 11 +++++++++++ quickshell/Modals/WorkspaceRenameModal.qml | 14 -------------- quickshell/Services/SystemUpdateService.qml | 14 -------------- 3 files changed, 11 insertions(+), 28 deletions(-) diff --git a/quickshell/DMSShellIPC.qml b/quickshell/DMSShellIPC.qml index 1d042d58..de5e180f 100644 --- a/quickshell/DMSShellIPC.qml +++ b/quickshell/DMSShellIPC.qml @@ -1190,6 +1190,17 @@ Item { 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" } diff --git a/quickshell/Modals/WorkspaceRenameModal.qml b/quickshell/Modals/WorkspaceRenameModal.qml index 2158f794..9e250e94 100644 --- a/quickshell/Modals/WorkspaceRenameModal.qml +++ b/quickshell/Modals/WorkspaceRenameModal.qml @@ -214,18 +214,4 @@ FloatingWindow { 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"; - } - } } diff --git a/quickshell/Services/SystemUpdateService.qml b/quickshell/Services/SystemUpdateService.qml index 905b92f6..ab1603aa 100644 --- a/quickshell/Services/SystemUpdateService.qml +++ b/quickshell/Services/SystemUpdateService.qml @@ -192,18 +192,4 @@ Singleton { 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..."; - } - } }