mirror of
https://gitlab.gnome.org/julianschacher/top-bar-organizer.git
synced 2025-10-27 23:29:08 +00:00
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:
parent
40cf8de1a8
commit
40846915e7
@ -127,7 +127,7 @@ var BoxOrderManager = GObject.registerClass({
|
|||||||
*/
|
*/
|
||||||
disconnectSignals() {
|
disconnectSignals() {
|
||||||
for (const [handlerId, appIndicator] of this.#appIndicatorReadyHandlerIdMap) {
|
for (const [handlerId, appIndicator] of this.#appIndicatorReadyHandlerIdMap) {
|
||||||
if (handlerId && appIndicator) {
|
if (handlerId && appIndicator?.signalHandlerIsConnected(handlerId)) {
|
||||||
appIndicator.disconnect(handlerId);
|
appIndicator.disconnect(handlerId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user