mirror of
https://gitlab.gnome.org/june/top-bar-organizer.git
synced 2026-01-11 08:46:34 +01: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
1 changed files with 2 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue