LPCBeremiz.py
changeset 597 6fbfd3bf2927
parent 596 b36422acae13
child 598 6c919bc1551d
equal deleted inserted replaced
596:b36422acae13 597:6fbfd3bf2927
  1216         def Compile(self):
  1216         def Compile(self):
  1217             self.PluginRoot._build()
  1217             self.PluginRoot._build()
  1218         
  1218         
  1219         def SetProjectProperties(self, projectname, productname, productversion, companyname):
  1219         def SetProjectProperties(self, projectname, productname, productversion, companyname):
  1220             properties = self.PluginRoot.GetProjectProperties()
  1220             properties = self.PluginRoot.GetProjectProperties()
  1221             properties["projectName"] = projectname
  1221             new_properties = properties.copy()
  1222             properties["productName"] = productname
  1222             new_properties["projectName"] = projectname
  1223             properties["productVersion"] = productversion
  1223             new_properties["productName"] = productname
  1224             properties["companyName"] = companyname
  1224             new_properties["productVersion"] = productversion
  1225             self.PluginRoot.SetProjectProperties(properties=properties)
  1225             new_properties["companyName"] = companyname
  1226             self.RestartTimer()
  1226             if new_properties != properties:
       
  1227                 self.PluginRoot.SetProjectProperties(properties=new_properties)
       
  1228                 self.RestartTimer()
  1227         
  1229         
  1228         def SetOnlineMode(self, mode, path=None):
  1230         def SetOnlineMode(self, mode, path=None):
  1229             self.PluginRoot.SetOnlineMode(mode, path)
  1231             self.PluginRoot.SetOnlineMode(mode, path)
  1230             self.RestartTimer()
  1232             self.RestartTimer()
  1231         
  1233