Fixed a bug in the context menu of the tabview manager preventing the possibility to Start Python scripts without a file extension. eric7

Thu, 08 Sep 2022 17:30:29 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Thu, 08 Sep 2022 17:30:29 +0200
branch
eric7
changeset 9319
13fa876491bd
parent 9318
a47b5c46be3f
child 9320
22eef25d2956

Fixed a bug in the context menu of the tabview manager preventing the possibility to Start Python scripts without a file extension.

src/eric7/Plugins/ViewManagerPlugins/Tabview/Tabview.py file | annotate | diff | comparison | revisions
--- a/src/eric7/Plugins/ViewManagerPlugins/Tabview/Tabview.py	Thu Sep 08 16:57:18 2022 +0200
+++ b/src/eric7/Plugins/ViewManagerPlugins/Tabview/Tabview.py	Thu Sep 08 17:30:29 2022 +0200
@@ -365,6 +365,7 @@
                         ext = os.path.splitext(fileName)[1]
                         self.__startAct.setEnabled(
                             ext in Preferences.getDebugger("Python3Extensions").split()
+                            or self.contextMenuEditor.isPy3File()
                         )
                     else:
                         self.openRejectionsMenuAct.setEnabled(False)

eric ide

mercurial