Fix: Check, if signal handler is connected for handler id, before dc.

Do this to hopefully fix "No signal connection XX found" errors.
This commit is contained in:
June 2023-01-30 15:28:58 +01:00
commit 40846915e7
No known key found for this signature in database
GPG key ID: 094C2AC34192FA11

View file

@ -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);
}
}