mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 07:38:58 +08:00
Properly use classmethod to make sure ContainerManager is a singleton
CURA-2478
This commit is contained in:
parent
4f1000c70e
commit
7b42f52be9
@ -713,7 +713,7 @@ class ContainerManager(QObject):
|
||||
# Factory function, used by QML
|
||||
@staticmethod
|
||||
def createContainerManager(engine, js_engine):
|
||||
return ContainerManager()
|
||||
return ContainerManager.getInstance()
|
||||
|
||||
def _performMerge(self, merge_into, merge):
|
||||
assert isinstance(merge, type(merge_into))
|
||||
|
Loading…
x
Reference in New Issue
Block a user