fix commit 5e8cb0ea1 (close menu when showing helper)

This commit is contained in:
abakkk 2020-03-02 16:42:46 +01:00
parent d19c3e25ea
commit 8580902bf5
1 changed files with 1 additions and 4 deletions

View File

@ -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();
},