mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-02 03:23:58 -06:00
Move the required plugins list to before it's actually checked
Cuz ya know. If you don't set the data before checking, you will have a baaaad time.
This commit is contained in:
parent
8db49a1a9b
commit
202d802f61
1 changed files with 30 additions and 26 deletions
|
@ -495,21 +495,14 @@ class CuraApplication(QtApplication):
|
||||||
def startSplashWindowPhase(self) -> None:
|
def startSplashWindowPhase(self) -> None:
|
||||||
"""Runs preparations that needs to be done before the starting process."""
|
"""Runs preparations that needs to be done before the starting process."""
|
||||||
|
|
||||||
super().startSplashWindowPhase()
|
|
||||||
|
|
||||||
if not self.getIsHeadLess():
|
|
||||||
try:
|
|
||||||
self.setWindowIcon(QIcon(Resources.getPath(Resources.Images, "cura-icon.png" if not ApplicationMetadata.IsAlternateVersion else "cura-icon_wip.png")))
|
|
||||||
except FileNotFoundError:
|
|
||||||
Logger.log("w", "Unable to find the window icon.")
|
|
||||||
|
|
||||||
self.setRequiredPlugins([
|
self.setRequiredPlugins([
|
||||||
# Misc.:
|
# Misc.:
|
||||||
"ConsoleLogger", # You want to be able to read the log if something goes wrong.
|
"ConsoleLogger", # You want to be able to read the log if something goes wrong.
|
||||||
"CuraEngineBackend", # Cura is useless without this one since you can't slice.
|
"CuraEngineBackend", # Cura is useless without this one since you can't slice.
|
||||||
"FileLogger", # You want to be able to read the log if something goes wrong.
|
"FileLogger", # You want to be able to read the log if something goes wrong.
|
||||||
"XmlMaterialProfile", # Cura crashes without this one.
|
"XmlMaterialProfile", # Cura crashes without this one.
|
||||||
"Marketplace", #This contains the interface to enable/disable plug-ins, so if you disable it you can't enable it back.
|
"Marketplace",
|
||||||
|
# This contains the interface to enable/disable plug-ins, so if you disable it you can't enable it back.
|
||||||
"PrepareStage", # Cura is useless without this one since you can't load models.
|
"PrepareStage", # Cura is useless without this one since you can't load models.
|
||||||
"PreviewStage", # This shows the list of the plugin views that are installed in Cura.
|
"PreviewStage", # This shows the list of the plugin views that are installed in Cura.
|
||||||
"MonitorStage", # Major part of Cura's functionality.
|
"MonitorStage", # Major part of Cura's functionality.
|
||||||
|
@ -530,6 +523,17 @@ class CuraApplication(QtApplication):
|
||||||
"SelectionTool", # Dependency of the rest of the tools.
|
"SelectionTool", # Dependency of the rest of the tools.
|
||||||
"TranslateTool", # You'll need this for almost every print.
|
"TranslateTool", # You'll need this for almost every print.
|
||||||
])
|
])
|
||||||
|
# Plugins need to be set here, since in the super the check is done if they are actually loaded.
|
||||||
|
|
||||||
|
super().startSplashWindowPhase()
|
||||||
|
|
||||||
|
if not self.getIsHeadLess():
|
||||||
|
try:
|
||||||
|
self.setWindowIcon(QIcon(Resources.getPath(Resources.Images, "cura-icon.png" if not ApplicationMetadata.IsAlternateVersion else "cura-icon_wip.png")))
|
||||||
|
except FileNotFoundError:
|
||||||
|
Logger.log("w", "Unable to find the window icon.")
|
||||||
|
|
||||||
|
|
||||||
self._i18n_catalog = i18nCatalog("cura")
|
self._i18n_catalog = i18nCatalog("cura")
|
||||||
|
|
||||||
self._update_platform_activity_timer = QTimer()
|
self._update_platform_activity_timer = QTimer()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue