mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-06-30 03:55:09 +08:00
Add ConsoleLogger as pre-loaded plug-in
This way it gets loaded only once on start-up, which prevents errors that the plug-in was already loaded. Contributes to issue CURA-7501.
This commit is contained in:
parent
452fe3972f
commit
bf36aae0c0
@ -756,7 +756,7 @@ class CuraApplication(QtApplication):
|
||||
self._plugin_registry.addPluginLocation(os.path.join(QtApplication.getInstallPrefix(), "lib" + suffix, "cura"))
|
||||
if not hasattr(sys, "frozen"):
|
||||
self._plugin_registry.addPluginLocation(os.path.join(os.path.abspath(os.path.dirname(__file__)), "..", "plugins"))
|
||||
self._plugin_registry.loadPlugin("ConsoleLogger")
|
||||
self._plugin_registry.preloaded_plugins.append("ConsoleLogger")
|
||||
|
||||
self._plugin_registry.loadPlugins()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user