mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-09-21 08:53:14 +08:00
Remove unneeded nameChanged signal connection
CURA-6011
This commit is contained in:
parent
1277fbabc5
commit
89040b6d8f
@ -42,14 +42,8 @@ class GlobalStacksModel(ListModel):
|
|||||||
if isinstance(container, GlobalStack):
|
if isinstance(container, GlobalStack):
|
||||||
self._update()
|
self._update()
|
||||||
|
|
||||||
## Handler for container name change events.
|
|
||||||
def _onContainerNameChanged(self):
|
|
||||||
self._update()
|
|
||||||
|
|
||||||
def _update(self) -> None:
|
def _update(self) -> None:
|
||||||
items = []
|
items = []
|
||||||
for container in self._container_stacks:
|
|
||||||
container.nameChanged.disconnect(self._onContainerNameChanged)
|
|
||||||
|
|
||||||
container_stacks = ContainerRegistry.getInstance().findContainerStacks(type = "machine")
|
container_stacks = ContainerRegistry.getInstance().findContainerStacks(type = "machine")
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user