mirror of
https://gitlab.gnome.org/julianschacher/top-bar-organizer.git
synced 2025-10-27 15:19:09 +00:00
Update: Don't create object as result of init() being called
Create `this.settings` on enable instead of on init/creation, so that no objects get created as a result of `init()` being called. See here for the relevant review: https://extensions.gnome.org/review/25308 And for the relevant documentation: https://wiki.gnome.org/Projects/GnomeShell/Extensions/Review#Only_use_.60init.28.29.60_for_initialization
This commit is contained in:
parent
569fc6a683
commit
49c46bf33f
@ -30,10 +30,11 @@ const BoxOrderCreator = Me.imports.extensionModules.BoxOrderCreator;
|
||||
|
||||
class Extension {
|
||||
constructor() {
|
||||
this.settings = ExtensionUtils.getSettings();
|
||||
}
|
||||
|
||||
enable() {
|
||||
this.settings = ExtensionUtils.getSettings();
|
||||
|
||||
// Create an instance of AppIndicatorKStatusNotifierItemManager to handle AppIndicator/KStatusNotifierItem items.
|
||||
this._appIndicatorKStatusNotifierItemManager = new AppIndicatorKStatusNotifierItemManager.AppIndicatorKStatusNotifierItemManager();
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user