src/eric7/Plugins/PluginEricapi.py

branch
eric7
changeset 9514
2b104ad132a4
parent 9482
a2bc06a54d9d
child 9624
b47dfa7a137d
diff -r 6e260b424396 -r 2b104ad132a4 src/eric7/Plugins/PluginEricapi.py
--- a/src/eric7/Plugins/PluginEricapi.py	Wed Nov 16 10:10:06 2022 +0100
+++ b/src/eric7/Plugins/PluginEricapi.py	Wed Nov 16 10:53:40 2022 +0100
@@ -216,7 +216,5 @@
                         outfile = "{0}-{1}{2}".format(root, progLanguage.lower(), ext)
 
                 outfile = project.getRelativePath(outfile)
-                if outfile not in project.pdata["OTHERS"]:
-                    project.pdata["OTHERS"].append(outfile)
-                    project.setDirty(True)
-                    project.othersAdded(outfile)
+                if outfile not in project.getProjectData(dataKey="OTHERS"):
+                    project.appendFile(outfile)

eric ide

mercurial