mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 07:19:05 +08:00
Fix: Update active material names if materials lookup table gets updated
This commit is contained in:
parent
4b1ec905c1
commit
d83b803fe0
@ -123,6 +123,14 @@ class MachineManager(QObject):
|
||||
if containers:
|
||||
containers[0].nameChanged.connect(self._onMaterialNameChanged)
|
||||
|
||||
# NEW
|
||||
self._material_manager = self._application._material_manager
|
||||
self._material_manager.materialsUpdated.connect(self._onMaterialsUpdated)
|
||||
|
||||
def _onMaterialsUpdated(self):
|
||||
# When the materials lookup table gets updated, it can mean that a material has its name changed, which should
|
||||
# be reflected on the GUI. This signal emission makes sure that it happens.
|
||||
self.rootMaterialChanged.emit()
|
||||
|
||||
### NEW
|
||||
activeQualityGroupChanged = pyqtSignal()
|
||||
|
Loading…
x
Reference in New Issue
Block a user