mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Make sure Signal are disconnected when PackageModel is deleted
Contributes to CURA-8587
This commit is contained in:
parent
23d6c2390f
commit
ffa34ab5fe
2 changed files with 10 additions and 1 deletions
|
@ -55,6 +55,8 @@ class PackageList(ListModel):
|
|||
def __del__(self) -> None:
|
||||
""" When this object is deleted it will loop through all registered API requests and aborts them """
|
||||
self.cleanUpAPIRequest()
|
||||
self.isLoadingChanged.disconnect()
|
||||
self.hasMoreChanged.disconnect()
|
||||
|
||||
def abortRequest(self, request_id: str) -> None:
|
||||
"""Aborts a single request"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue