PluginMetricsRadon.py

branch
eric7
changeset 114
c4e39e9e3987
parent 113
ab0e46f963ee
child 120
61bf877c4f1a
equal deleted inserted replaced
113:ab0e46f963ee 114:c4e39e9e3987
796 @type QMenu 796 @type QMenu
797 @param editor reference to the editor 797 @param editor reference to the editor
798 @type Editor 798 @type Editor
799 """ 799 """
800 if menuName == "Show": 800 if menuName == "Show":
801 enable = ( 801 enable = editor.isPyFile() and not FileSystemUtilities.isRemoteFileName(
802 editor.isPyFile() 802 editor.getFileName()
803 and not FileSystemUtilities.isRemoteFileName(editor.getFileName())
804 ) 803 )
805 for act in self.__editorMetricsActs: 804 for act in self.__editorMetricsActs:
806 act.setEnabled(enable) 805 act.setEnabled(enable)
807 806
808 ################################################################## 807 ##################################################################

eric ide

mercurial