mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-05 13:40:37 +08:00
Preload theme in QtApplication
Fixes an error where theme was loaded before the engine is initialized CURA-6823
This commit is contained in:
parent
6a0fba060e
commit
07fb775ac1
@ -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()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user