Little enhancement to the editor context menu to enable the Tools submenu only, if it contains some entries (populated by plug-ins).

Wed, 19 Aug 2015 11:00:48 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Wed, 19 Aug 2015 11:00:48 +0200
changeset 4376
7847a37ee71d
parent 4374
627e3d0b4ba1
child 4378
d8f81e864816

Little enhancement to the editor context menu to enable the Tools submenu only, if it contains some entries (populated by plug-ins).

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
@@ -4981,6 +4981,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):

eric ide

mercurial