do not create menu when leaving drawing mode
'this.menu.close()' called the getter 'this.menu' that create the menu if it's not exist, which is not wanted when leaving drawing mode.
This commit is contained in:
parent
bb78937d60
commit
944500fc24
3
draw.js
3
draw.js
|
|
@ -581,7 +581,8 @@ var DrawingArea = new Lang.Class({
|
||||||
this.dashedLine = false;
|
this.dashedLine = false;
|
||||||
this.fill = false;
|
this.fill = false;
|
||||||
this._redisplay();
|
this._redisplay();
|
||||||
this.menu.close();
|
if (this._menu)
|
||||||
|
this._menu.close();
|
||||||
this.get_parent().set_background_color(null);
|
this.get_parent().set_background_color(null);
|
||||||
if (save)
|
if (save)
|
||||||
this.saveAsJson();
|
this.saveAsJson();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue