equal
deleted
inserted
replaced
1632 if dialog.ShowModal() == wx.ID_OK: |
1632 if dialog.ShowModal() == wx.ID_OK: |
1633 projectpath = dialog.GetPath() |
1633 projectpath = dialog.GetPath() |
1634 self.Config.Write("lastopenedfolder", os.path.dirname(projectpath)) |
1634 self.Config.Write("lastopenedfolder", os.path.dirname(projectpath)) |
1635 self.Config.Flush() |
1635 self.Config.Flush() |
1636 self.ResetView() |
1636 self.ResetView() |
1637 self.PluginRoot = PluginsRoot(self, self.Log) |
1637 plugin_root = PluginsRoot(self, self.Log) |
1638 self.Controler = self.PluginRoot |
1638 result = plugin_root.NewProject(projectpath) |
1639 result = self.PluginRoot.NewProject(projectpath) |
|
1640 if not result: |
1639 if not result: |
|
1640 self.PluginRoot = plugin_root |
|
1641 self.Controler = self.PluginRoot |
1641 self.RefreshConfigRecentProjects(projectpath) |
1642 self.RefreshConfigRecentProjects(projectpath) |
1642 if self.EnableDebug: |
1643 if self.EnableDebug: |
1643 self.DebugVariablePanel.SetDataProducer(self.PluginRoot) |
1644 self.DebugVariablePanel.SetDataProducer(self.PluginRoot) |
1644 self._Refresh(TYPESTREE, INSTANCESTREE, LIBRARYTREE) |
1645 self._Refresh(TYPESTREE, INSTANCESTREE, LIBRARYTREE) |
1645 self.RefreshAll() |
1646 self.RefreshAll() |