# HG changeset patch
# User Laurent Bessard
# Date 1364426501 -3600
# Node ID 38a01052693fb3320c9d25ac18d50feabce33f64
# Parent  13c9ff7f3b54b3724d556e5e0cdb03bfc09f77cc
Removed Beremiz service taskbar icon when simulating PLC

diff -r 13c9ff7f3b54 -r 38a01052693f 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: