equal
deleted
inserted
replaced
1250 if dialog.ShowModal() == wx.ID_OK: |
1250 if dialog.ShowModal() == wx.ID_OK: |
1251 projectpath = dialog.GetPath() |
1251 projectpath = dialog.GetPath() |
1252 dialog.Destroy() |
1252 dialog.Destroy() |
1253 config.Write("lastopenedfolder", os.path.dirname(projectpath)) |
1253 config.Write("lastopenedfolder", os.path.dirname(projectpath)) |
1254 config.Flush() |
1254 config.Flush() |
|
1255 self.PluginInfos = {} |
|
1256 if self.PluginRoot is not None: |
|
1257 self.PluginRoot.CloseProject() |
1255 self.PluginRoot = PluginsRoot(self, self.Log) |
1258 self.PluginRoot = PluginsRoot(self, self.Log) |
1256 res = self.PluginRoot.NewProject(projectpath) |
1259 res = self.PluginRoot.NewProject(projectpath) |
1257 if not res : |
1260 if not res : |
1258 self.RefreshAll() |
1261 self.RefreshAll() |
1259 self.RefreshMainMenu() |
1262 self.RefreshMainMenu() |
1273 if dialog.ShowModal() == wx.ID_OK: |
1276 if dialog.ShowModal() == wx.ID_OK: |
1274 projectpath = dialog.GetPath() |
1277 projectpath = dialog.GetPath() |
1275 if os.path.isdir(projectpath): |
1278 if os.path.isdir(projectpath): |
1276 config.Write("lastopenedfolder", os.path.dirname(projectpath)) |
1279 config.Write("lastopenedfolder", os.path.dirname(projectpath)) |
1277 config.Flush() |
1280 config.Flush() |
|
1281 self.PluginInfos = {} |
|
1282 if self.PluginRoot is not None: |
|
1283 self.PluginRoot.CloseProject() |
1278 self.PluginRoot = PluginsRoot(self, self.Log) |
1284 self.PluginRoot = PluginsRoot(self, self.Log) |
1279 result = self.PluginRoot.LoadProject(projectpath) |
1285 result = self.PluginRoot.LoadProject(projectpath) |
1280 if not result: |
1286 if not result: |
1281 self.RefreshAll() |
1287 self.RefreshAll() |
1282 self.RefreshMainMenu() |
1288 self.RefreshMainMenu() |