mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 07:27:29 -06:00
Remove unneeded nameChanged signal connection
CURA-6011
This commit is contained in:
parent
1277fbabc5
commit
89040b6d8f
1 changed files with 0 additions and 6 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue