src/eric7/QScintilla/Editor.py

branch
server
changeset 10573
c4f503f40caf
parent 10561
be23a662d709
parent 10570
ae53b96eedbb
child 10574
622e59b51640
--- a/src/eric7/QScintilla/Editor.py	Wed Feb 14 09:39:37 2024 +0100
+++ b/src/eric7/QScintilla/Editor.py	Wed Feb 14 10:24:23 2024 +0100
@@ -6495,12 +6495,8 @@
         # now check ourselves
         fn = self.getFileName()
         if fn is not None:
-            prEnable |= self.project.isPy3Project() and bool(
-                Utilities.getProfileFileName(fn)
-            )
-            coEnable |= self.project.isPy3Project() and bool(
-                Utilities.getCoverageFileName(fn)
-            )
+            prEnable |= self.isPyFile() and bool(Utilities.getProfileFileName(fn))
+            coEnable |= self.isPyFile() and bool(Utilities.getCoverageFileName(fn))
 
         coEnable |= bool(self.__coverageFile)
 

eric ide

mercurial