# HG changeset patch # User Andrey Skvortsov # Date 1481124337 -10800 # Node ID 049b7144a710965cefc6b411973436b2be9548a4 # Parent 6a27490fed96aeb49743fef11b2a70ecb4cbeaea fix issue with changing annonced Pyro service name via taskbar icon diff -r 6a27490fed96 -r 049b7144a710 Beremiz_service.py --- a/Beremiz_service.py Wed Dec 07 18:23:59 2016 +0300 +++ b/Beremiz_service.py Wed Dec 07 18:25:37 2016 +0300 @@ -310,10 +310,12 @@ self.pyroserver.Stop() def OnTaskBarChangeName(self, evt): - dlg = ParamsEntryDialog(None, _("Enter a name "), defaultValue=self.pyroserver.name) + servicename = self.pyroserver.servicename + servicename = '' if servicename is None else servicename + dlg = ParamsEntryDialog(None, _("Enter a name "), defaultValue=servicename) dlg.SetTests([(lambda name : len(name) is not 0 , _("Name must not be null!"))]) if dlg.ShowModal() == wx.ID_OK: - self.pyroserver.name = dlg.GetValue() + self.pyroserver.servicename = dlg.GetValue() self.pyroserver.Restart() def _LiveShellLocals(self):