mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-07 05:53:59 -06:00
Register container tree to be built once all metadata is in
So if we ever change the order of initialisation this stays working. Contributes to issue CURA-6600.
This commit is contained in:
parent
d710a58233
commit
bd714f947a
2 changed files with 4 additions and 3 deletions
|
@ -511,6 +511,8 @@ class CuraApplication(QtApplication):
|
|||
|
||||
self.showSplashMessage(self._i18n_catalog.i18nc("@info:progress", "Loading machines..."))
|
||||
|
||||
self._container_registry.allMetadataLoaded.connect(ContainerRegistry.getInstance)
|
||||
|
||||
with self._container_registry.lockFile():
|
||||
self._container_registry.loadAllMetadata()
|
||||
|
||||
|
@ -732,9 +734,6 @@ class CuraApplication(QtApplication):
|
|||
def run(self):
|
||||
super().run()
|
||||
|
||||
Logger.log("i", "Building container tree.")
|
||||
ContainerTree.getInstance()
|
||||
|
||||
Logger.log("i", "Initializing machine manager")
|
||||
self._machine_manager = MachineManager(self, parent = self)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue