equal
deleted
inserted
replaced
795 self.SaveXMLFile(os.path.join(self.ProjectPath, 'plc.xml')) |
795 self.SaveXMLFile(os.path.join(self.ProjectPath, 'plc.xml')) |
796 if self.PLCEditor: |
796 if self.PLCEditor: |
797 self.PLCEditor.RefreshTitle() |
797 self.PLCEditor.RefreshTitle() |
798 self.PlugRequestSave() |
798 self.PlugRequestSave() |
799 |
799 |
|
800 def CloseProject(self): |
|
801 self.ProjectPath = None |
|
802 self.PluggedChilds = {} |
|
803 |
800 # Update PLCOpenEditor Plugin Block types from loaded plugins |
804 # Update PLCOpenEditor Plugin Block types from loaded plugins |
801 def RefreshPluginsBlockLists(self): |
805 def RefreshPluginsBlockLists(self): |
802 if getattr(self, "PluggedChilds", None) is not None: |
806 if getattr(self, "PluggedChilds", None) is not None: |
803 ClearPluginTypes() |
807 ClearPluginTypes() |
804 AddPluginBlockList(self.BlockTypesFactory()) |
808 AddPluginBlockList(self.BlockTypesFactory()) |