From 5e3cf921973e9e45ec4161ba86c662b17f8d290e Mon Sep 17 00:00:00 2001 From: Diego Prado Gesto Date: Wed, 21 Mar 2018 16:57:48 +0100 Subject: [PATCH 1/2] CURA-5134 Add funtionality to lazily remove plugins --- cura/CuraApplication.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cura/CuraApplication.py b/cura/CuraApplication.py index 98c682a8a3..1bbfa7be58 100755 --- a/cura/CuraApplication.py +++ b/cura/CuraApplication.py @@ -498,8 +498,13 @@ class CuraApplication(QtApplication): def getStaticVersion(cls): return CuraVersion + ## Handle removing the unneeded plugins + # \sa PluginRegistry + def _removePlugins(self): + self._plugin_registry.removePlugins() + ## Handle loading of all plugin types (and the backend explicitly) - # \sa PluginRegistery + # \sa PluginRegistry def _loadPlugins(self): self._plugin_registry.addType("profile_reader", self._addProfileReader) self._plugin_registry.addType("profile_writer", self._addProfileWriter) From 4226f3641b26ec233e751f662c11a3db64daa594 Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Wed, 21 Mar 2018 17:12:36 +0100 Subject: [PATCH 2/2] Better defaults for filament change And better descriptions. --- plugins/PostProcessingPlugin/scripts/FilamentChange.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/PostProcessingPlugin/scripts/FilamentChange.py b/plugins/PostProcessingPlugin/scripts/FilamentChange.py index 2bb7891634..07e887b082 100644 --- a/plugins/PostProcessingPlugin/scripts/FilamentChange.py +++ b/plugins/PostProcessingPlugin/scripts/FilamentChange.py @@ -27,18 +27,18 @@ class FilamentChange(Script): "initial_retract": { "label": "Initial Retraction", - "description": "Initial filament retraction distance", + "description": "Initial filament retraction distance. The filament will be retracted with this amount before moving the nozzle away from the ongoing print.", "unit": "mm", "type": "float", - "default_value": 300.0 + "default_value": 30.0 }, "later_retract": { "label": "Later Retraction Distance", - "description": "Later filament retraction distance for removal", + "description": "Later filament retraction distance for removal. The filament will be retracted all the way out of the printer so that you can change the filament.", "unit": "mm", "type": "float", - "default_value": 30.0 + "default_value": 300.0 } } }"""