not to populate helper widget before the first showing

Does not fix anything, just a marginal gain.
This commit is contained in:
abakkk 2020-06-01 17:37:08 +02:00
parent b45c86a5af
commit a4456762b5
1 changed files with 6 additions and 0 deletions

View File

@ -1079,6 +1079,9 @@ var DrawingHelper = new Lang.Class({
this.parent(params);
this.monitor = monitor;
this.hide();
},
_populate: function() {
this.vbox = new St.BoxLayout({ vertical: true });
this.add_actor(this.vbox);
this.vbox.add_child(new St.Label({ text: _("Global") }));
@ -1147,6 +1150,9 @@ var DrawingHelper = new Lang.Class({
},
showHelp: function() {
if (!this.vbox)
this._populate();
this.opacity = 0;
this.show();