mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 05:25:56 +08:00
Refusing to change material actually prevents material from being changed
CURA-1909
This commit is contained in:
parent
a7e22e82b6
commit
951e7bf629
@ -126,6 +126,9 @@ class MachineManager(QObject):
|
|||||||
self._auto_change_material_hotend_flood_time = time.time()
|
self._auto_change_material_hotend_flood_time = time.time()
|
||||||
self._auto_change_material_hotend_flood_last_choice = button
|
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))
|
Logger.log("d", "Setting hotend variant of hotend %d to %s" % (index, hotend_id))
|
||||||
|
|
||||||
extruder_manager = ExtruderManager.getInstance()
|
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_time = time.time()
|
||||||
self._auto_change_material_hotend_flood_last_choice = button
|
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))
|
Logger.log("d", "Setting material of hotend %d to %s" % (index, material_id))
|
||||||
|
|
||||||
extruder_manager = ExtruderManager.getInstance()
|
extruder_manager = ExtruderManager.getInstance()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user