fix commit 5e8cb0ea1 (close menu when showing helper)
This commit is contained in:
parent
d19c3e25ea
commit
8580902bf5
5
draw.js
5
draw.js
|
|
@ -587,9 +587,6 @@ var DrawingArea = new Lang.Class({
|
|||
},
|
||||
|
||||
toggleHelp: function() {
|
||||
if (this._menu)
|
||||
this._menu.close();
|
||||
|
||||
if (this.helper.visible)
|
||||
this.helper.hideHelp();
|
||||
else
|
||||
|
|
@ -1305,7 +1302,7 @@ const DrawingMenu = new Lang.Class({
|
|||
|
||||
this.menu.addAction(_("Save drawing as a SVG file"), this.area.saveAsSvg.bind(this.area), 'image-x-generic-symbolic');
|
||||
this.menu.addAction(_("Open user.css"), manager.openUserStyleFile.bind(manager), 'document-page-setup-symbolic');
|
||||
this.menu.addAction(_("Show help"), this.area.toggleHelp.bind(this.area), 'preferences-desktop-keyboard-shortcuts-symbolic');
|
||||
this.menu.addAction(_("Show help"), () => { this.close(); this.area.toggleHelp(); }, 'preferences-desktop-keyboard-shortcuts-symbolic');
|
||||
|
||||
this.updateSectionVisibility();
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue