Removed Beremiz service taskbar icon when simulating PLC
authorLaurent Bessard
Thu, 28 Mar 2013 00:21:41 +0100
changeset 39 38a01052693f
parent 38 13c9ff7f3b54
child 40 000de4f24ab2
Removed Beremiz service taskbar icon when simulating PLC
LPCManager.py
--- a/LPCManager.py	Wed Mar 27 00:58:02 2013 +0100
+++ b/LPCManager.py	Thu Mar 28 00:21:41 2013 +0100
@@ -1207,6 +1207,7 @@
     
     def StopSimulation(self):
         self.CurrentMode = None
+        self._SetConnector(None)
         self.ApplyOnlineMode()
     
     def _Stop(self):
@@ -1817,6 +1818,10 @@
         Beremiz.RefreshAll(self)
         self.RefreshPLCParams()
         self.RefreshConfNodeTree()
+    
+    # Remove taskbar icon when simulating
+    def StartLocalRuntime(self, taskbaricon = True):
+        return Beremiz.StartLocalRuntime(self, taskbaricon = False)
 
 class StdoutPseudoFile: