mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-23 06:33:55 -06:00
Refusing to change material actually prevents material from being changed
CURA-1909
This commit is contained in:
parent
a7e22e82b6
commit
951e7bf629
1 changed files with 6 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue