Adding save project before building on LPCBeremiz
authorlaurent
Thu, 21 Apr 2011 12:35:27 +0200
changeset 599 c7be4d09c5f4
parent 598 6c919bc1551d
child 600 310455d73131
child 601 d0e3fc4b9951
Adding save project before building on LPCBeremiz
LPCBeremiz.py
--- a/LPCBeremiz.py	Thu Apr 21 11:06:43 2011 +0200
+++ b/LPCBeremiz.py	Thu Apr 21 12:35:27 2011 +0200
@@ -444,9 +444,15 @@
             return PluginsRoot._getBuildPath(self)
 
     def _build(self):
+        save = self.ProjectTestModified()
+        if save:
+            self.SaveProject()
+            self.AppFrame._Refresh(TITLE, FILEMENU)
         if self.BuildPath is not None:
             mycopytree(self.OrigBuildPath, self.BuildPath)
         PluginsRoot._build(self)
+        if save:
+            wx.CallAfter(self.AppFrame.RefreshAll)
     
     def SetProjectName(self, name):
         return self.Project.setname(name)