mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-17 12:05:57 +08:00
Fix that renaming a custom material also updates the selected material.
The namechanged signal was not connected at startup, so the update would only work if you change material first before renaming. Contributes to CURA-4243.
This commit is contained in:
parent
c52451217b
commit
90e8256f46
@ -728,6 +728,8 @@ class CuraApplication(QtApplication):
|
||||
def getMachineManager(self, *args):
|
||||
if self._machine_manager is None:
|
||||
self._machine_manager = MachineManager.createMachineManager()
|
||||
# explicitly sets current material and set internal state: also fixes problem with material namechange signal
|
||||
self._machine_manager.setActiveMaterial(self._machine_manager.activeMaterialId)
|
||||
return self._machine_manager
|
||||
|
||||
def getExtruderManager(self, *args):
|
||||
|
Loading…
x
Reference in New Issue
Block a user