From: daid303 Date: Mon, 15 Oct 2012 15:17:03 +0000 (+0200) Subject: Add warning when installing custom firmware X-Git-Tag: 13.03~245 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=620532f0cb987241f0590d45f7a36d274257cf01;p=cura.git Add warning when installing custom firmware --- diff --git a/Cura/gui/mainWindow.py b/Cura/gui/mainWindow.py index 8545c9b4..4cb5b604 100644 --- a/Cura/gui/mainWindow.py +++ b/Cura/gui/mainWindow.py @@ -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: