From 40846915e78fca864891c81b0879f2915304a481 Mon Sep 17 00:00:00 2001 From: Julian Schacher Date: Mon, 30 Jan 2023 15:28:58 +0100 Subject: [PATCH] Fix: Check, if signal handler is connected for handler id, before dc. Do this to hopefully fix "No signal connection XX found" errors. --- src/extensionModules/BoxOrderManager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/extensionModules/BoxOrderManager.js b/src/extensionModules/BoxOrderManager.js index 9f04f33..19a0535 100644 --- a/src/extensionModules/BoxOrderManager.js +++ b/src/extensionModules/BoxOrderManager.js @@ -127,7 +127,7 @@ var BoxOrderManager = GObject.registerClass({ */ disconnectSignals() { for (const [handlerId, appIndicator] of this.#appIndicatorReadyHandlerIdMap) { - if (handlerId && appIndicator) { + if (handlerId && appIndicator?.signalHandlerIsConnected(handlerId)) { appIndicator.disconnect(handlerId); } }