diff --git a/draw.js b/draw.js index 7de0e82..feba951 100644 --- a/draw.js +++ b/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(); },