Preload theme in QtApplication

Fixes an error where theme was loaded before the engine is initialized

CURA-6823
This commit is contained in:
Nino van Hooff 2019-12-24 09:51:37 +01:00
parent 6a0fba060e
commit 07fb775ac1

View File

@ -871,7 +871,6 @@ class CuraApplication(QtApplication):
# Initialize QML engine # Initialize QML engine
self.setMainQml(Resources.getPath(self.ResourceTypes.QmlFiles, "Cura.qml")) self.setMainQml(Resources.getPath(self.ResourceTypes.QmlFiles, "Cura.qml"))
self._qml_import_paths.append(Resources.getPath(self.ResourceTypes.QmlFiles)) self._qml_import_paths.append(Resources.getPath(self.ResourceTypes.QmlFiles))
self.getTheme() # preload
self.showSplashMessage(self._i18n_catalog.i18nc("@info:progress", "Initialize engine...")) self.showSplashMessage(self._i18n_catalog.i18nc("@info:progress", "Initialize engine..."))
self.initializeEngine() self.initializeEngine()