mirror of
https://gitlab.gnome.org/julianschacher/top-bar-organizer.git
synced 2025-10-27 23:29:08 +00:00
Fix: Null out this.settings on extension disable
See here for the relevant review: https://extensions.gnome.org/review/38364 And for the relevant documentation: https://gjs.guide/extensions/review-guidelines/review-guidelines.html#destroy-all-objects
This commit is contained in:
parent
93ec247cd3
commit
2ef16f310c
@ -76,6 +76,8 @@ class Extension {
|
|||||||
for (const handlerId of this._settingsHandlerIds) {
|
for (const handlerId of this._settingsHandlerIds) {
|
||||||
this.settings.disconnect(handlerId);
|
this.settings.disconnect(handlerId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.settings = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user