Wed, 19 Aug 2015 11:00:48 +0200
Little enhancement to the editor context menu to enable the Tools submenu only, if it contains some entries (populated by plug-ins).
(grafted from 7847a37ee71db8d14ae6aa208c4c521f450c6942)
QScintilla/Editor.py | file | annotate | diff | comparison | revisions |
--- a/QScintilla/Editor.py Mon Aug 17 13:17:39 2015 +0200 +++ b/QScintilla/Editor.py Wed Aug 19 11:00:48 2015 +0200 @@ -4766,6 +4766,8 @@ self.menuActs["NewSplit"].setIcon( UI.PixmapCache.getIcon("splitVertical.png")) + self.menuActs["Tools"].setEnabled(not self.toolsMenu.isEmpty()) + self.showMenu.emit("Main", self.menu, self) def __showContextMenuAutocompletion(self):