--- a/src/eric7/QScintilla/Editor.py Wed Feb 14 10:01:25 2024 +0100 +++ b/src/eric7/QScintilla/Editor.py Wed Feb 14 10:19:19 2024 +0100 @@ -6421,12 +6421,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)