Beremiz.py
changeset 714 f8ee6fd01f7c
parent 713 37dc330e96a2
parent 712 5a036ae4d6aa
child 715 135566ab0807
equal deleted inserted replaced
713:37dc330e96a2 714:f8ee6fd01f7c
  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()