lpcmanager

Parents 16a954b017af
Children ffb9a4cec11a
Change a dialog if trying to transfer when PLC is in run mode.
--- a/LPCManager.py Fri Mar 31 14:44:20 2017 +0200
+++ b/LPCManager.py Fri Mar 31 14:46:24 2017 +0200
@@ -1118,6 +1118,12 @@
def _Transfer(self):
if self.OnlineMode == "NORMAL":
+ if self.IsPLCStarted():
+ dialog = wx.MessageDialog(self.AppFrame, "You must stop the PLC before transfer. Do you want to stop it now and transfer?", style=wx.YES_NO|wx.CENTRE)
+ if dialog.ShowModal() == wx.ID_YES:
+ self._Stop()
+ else:
+ return
ProjectController._Transfer(self)
return
if self.CurrentMode is None and self.OnlineMode != "OFF":