mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 15:07:28 -06:00
Properly use classmethod to make sure ContainerManager is a singleton
CURA-2478
This commit is contained in:
parent
4f1000c70e
commit
7b42f52be9
1 changed files with 1 additions and 1 deletions
|
@ -713,7 +713,7 @@ class ContainerManager(QObject):
|
||||||
# Factory function, used by QML
|
# Factory function, used by QML
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def createContainerManager(engine, js_engine):
|
def createContainerManager(engine, js_engine):
|
||||||
return ContainerManager()
|
return ContainerManager.getInstance()
|
||||||
|
|
||||||
def _performMerge(self, merge_into, merge):
|
def _performMerge(self, merge_into, merge):
|
||||||
assert isinstance(merge, type(merge_into))
|
assert isinstance(merge, type(merge_into))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue