lpcmanager

Parents 539325971a35
Children 8bc894a439da
Add a message telling user after update 'Do not poweroff the device while it is rebooting. Wait until you can connect again to ensure update succeeded.'
--- a/LPCProjectController.py Wed Jun 02 16:11:04 2021 +0200
+++ b/LPCProjectController.py Thu Jun 17 14:58:58 2021 +0200
@@ -283,13 +283,16 @@
# Propose reboot
- answer = wx.MessageBox(_('Firmware update requires reboot to complete. Reboot PLC now?'),
+ answer = wx.MessageBox(_('Firmware update requires rebooting and reconnecting to complete. Reboot PLC now?'),
_('Firmware Update'), wx.YES_NO | wx.CENTRE | wx.NO_DEFAULT,
self.AppFrame)
if answer == wx.YES:
- self.logger.write(_("Rebooting PLC.\n"))
+ self.logger.write(_("Rebooting PLC...\n"))
updater.RebootTarget()
self._Disconnect()
+ wx.MessageBox(_('Do not poweroff the device while it is rebooting. Wait until you can connect again to ensure update succeeded.'),
+ _('WARNING'), wx.OK | wx.CENTRE | wx.NO_DEFAULT,
+ self.AppFrame)
return
return True