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:
Ghostkeeper 2020-10-16 13:09:41 +02:00
parent 452fe3972f
commit bf36aae0c0
No known key found for this signature in database
GPG Key ID: D2A8871EE34EC59A

View File

@ -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()