Don't create multiple copies of the (+) button
Currently we recreate it every time Main.overview.show() is called, so destroy it to avoid having multiple copies floating around. https://bugzilla.gnome.org/show_bug.cgi?id=597309
This commit is contained in:
parent
edb50d5dc7
commit
6a8b50cb00
@ -357,6 +357,10 @@ Overview.prototype = {
|
||||
this._activeDisplayPane.close();
|
||||
this._workspaces.hide();
|
||||
|
||||
this._addButton.actor.destroy();
|
||||
this._addButton.actor = null;
|
||||
this._addButton = null;
|
||||
|
||||
// Create a zoom in effect by transforming the Overview group so that
|
||||
// the active workspace fills up the whole screen. The opposite
|
||||
// transition is used in show().
|
||||
|
Loading…
Reference in New Issue
Block a user