Refusing to change material actually prevents material from being changed

CURA-1909
This commit is contained in:
Jaime van Kessel 2016-07-15 11:40:43 +02:00
parent a7e22e82b6
commit 951e7bf629

View file

@ -126,6 +126,9 @@ class MachineManager(QObject):
self._auto_change_material_hotend_flood_time = time.time()
self._auto_change_material_hotend_flood_last_choice = button
if button == QMessageBox.No:
return
Logger.log("d", "Setting hotend variant of hotend %d to %s" % (index, hotend_id))
extruder_manager = ExtruderManager.getInstance()
@ -174,6 +177,9 @@ class MachineManager(QObject):
self._auto_change_material_hotend_flood_time = time.time()
self._auto_change_material_hotend_flood_last_choice = button
if button == QMessageBox.No:
return
Logger.log("d", "Setting material of hotend %d to %s" % (index, material_id))
extruder_manager = ExtruderManager.getInstance()