mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-09 15:57:52 -06: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
1 changed files with 1 additions and 1 deletions
|
@ -756,7 +756,7 @@ class CuraApplication(QtApplication):
|
||||||
self._plugin_registry.addPluginLocation(os.path.join(QtApplication.getInstallPrefix(), "lib" + suffix, "cura"))
|
self._plugin_registry.addPluginLocation(os.path.join(QtApplication.getInstallPrefix(), "lib" + suffix, "cura"))
|
||||||
if not hasattr(sys, "frozen"):
|
if not hasattr(sys, "frozen"):
|
||||||
self._plugin_registry.addPluginLocation(os.path.join(os.path.abspath(os.path.dirname(__file__)), "..", "plugins"))
|
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()
|
self._plugin_registry.loadPlugins()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue