not to populate helper widget before the first showing
Does not fix anything, just a marginal gain.
This commit is contained in:
parent
b45c86a5af
commit
a4456762b5
6
draw.js
6
draw.js
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue