chiark / gitweb /
Refuse to USB print with UltiGCode flavor.
[cura.git] / Cura / gui / sceneView.py
index c757bf622993afad49c4a85d0687a78983d8ce94..de879b940fa5cfa230eaae3542ebd54b01d7b455 100644 (file)
@@ -250,6 +250,9 @@ class SceneView(openglGui.glGuiPanel):
        def showPrintWindow(self):
                if self._gcodeFilename is None:
                        return
+               if profile.getMachineSetting('gcode_flavor') == 'UltiGCode':
+                       wx.MessageBox(_("USB printing on the Ultimaker2 is not supported."), _("USB Printing Error"), wx.OK | wx.ICON_WARNING)
+                       return
                self._usbPrintMonitor.loadFile(self._gcodeFilename, self._slicer.getID())
                if self._gcodeFilename == self._slicer.getGCodeFilename():
                        self._slicer.submitSliceInfoOnline()