AssistantEric/APIsManager.py

branch
eric7
changeset 198
b9fbbb1c3055
parent 196
00da965ec6cb
child 200
90c24865ba02
--- a/AssistantEric/APIsManager.py	Thu Nov 17 16:07:41 2022 +0100
+++ b/AssistantEric/APIsManager.py	Thu Nov 17 17:59:58 2022 +0100
@@ -1273,7 +1273,12 @@
         @param filename name of the file that was saved
         @type str
         """
-        if self.__project.isProjectSource(filename):
+        try:
+            isProjectSource = self.__project.isProjectCategory(filename, "SOURCES")
+        except AttributeError:
+            # backward compatibility for eric < 22.12
+            isProjectSource = self.__project.isProjectSource(filename)
+        if isProjectSource:
             self.__workerQueue.append(filename)
             self.__processQueue()
 

eric ide

mercurial