chiark / gitweb /
Fix warning message on custom firmware.
authordaid <daid303@gmail.com>
Mon, 23 Sep 2013 18:56:02 +0000 (20:56 +0200)
committerdaid <daid303@gmail.com>
Mon, 23 Sep 2013 18:56:02 +0000 (20:56 +0200)
Cura/gui/mainWindow.py

index f6260a947af1f4938416c4696cb31caa1a2ebd8a..7cc2dc2cc82aa5ec6c3927b8034fac962ee3bbb4 100644 (file)
@@ -408,7 +408,7 @@ class mainWindow(wx.Frame):
                firmwareInstall.InstallFirmware()
 
        def OnCustomFirmware(self, e):
-               if profile.getPreference('machine_type').startswith('ultimaker'):
+               if profile.getMachineSetting('machine_type').startswith('ultimaker'):
                        wx.MessageBox(_("Warning: Installing a custom firmware does not guarantee 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")