mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-15 04:45:52 +08:00
CURA-5134 Add funtionality to lazily remove plugins
This commit is contained in:
parent
e6849d1b82
commit
5e3cf92197
@ -498,8 +498,13 @@ class CuraApplication(QtApplication):
|
|||||||
def getStaticVersion(cls):
|
def getStaticVersion(cls):
|
||||||
return CuraVersion
|
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)
|
## Handle loading of all plugin types (and the backend explicitly)
|
||||||
# \sa PluginRegistery
|
# \sa PluginRegistry
|
||||||
def _loadPlugins(self):
|
def _loadPlugins(self):
|
||||||
self._plugin_registry.addType("profile_reader", self._addProfileReader)
|
self._plugin_registry.addType("profile_reader", self._addProfileReader)
|
||||||
self._plugin_registry.addType("profile_writer", self._addProfileWriter)
|
self._plugin_registry.addType("profile_writer", self._addProfileWriter)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user