Add warning when installing custom firmware

master
daid303 2012-10-15 17:17:03 +02:00
parent db1cfa0954
commit 620532f0cb
1 changed files with 2 additions and 0 deletions

View File

@ -331,6 +331,8 @@ class mainWindow(configBase.configWindowBase):
firmwareInstall.InstallFirmware()
def OnCustomFirmware(self, e):
if profile.getPreference('machine_type') == 'ultimaker':
wx.MessageBox('Warning: Installing a custom firmware does not garantee that you machine will function correctly, and could damage your machine.', 'Firmware update', wx.OK | wx.ICON_EXCLAMATION)
dlg=wx.FileDialog(self, "Open firmware to upload", os.path.split(profile.getPreference('lastFile'))[0], style=wx.FD_OPEN|wx.FD_FILE_MUST_EXIST)
dlg.SetWildcard("HEX file (*.hex)|*.hex;*.HEX")
if dlg.ShowModal() == wx.ID_OK: