--- a/src/eric7/QScintilla/Editor.py Sat Feb 10 11:02:45 2024 +0100 +++ b/src/eric7/QScintilla/Editor.py Sun Mar 03 10:39:29 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)