Follow symlinks when checking plugin signatures only in DEBUG mode

CURA-7735
This commit is contained in:
Kostas Karmas 2020-10-05 16:34:20 +02:00
parent da265fccb6
commit a68eebf03c

View File

@ -714,7 +714,7 @@ class CuraApplication(QtApplication):
## Handle loading of all plugin types (and the backend explicitly)
# \sa PluginRegistry
def _loadPlugins(self) -> None:
self._plugin_registry.setCheckIfTrusted(ApplicationMetadata.IsEnterpriseVersion)
self._plugin_registry.setCheckIfTrusted(ApplicationMetadata.IsEnterpriseVersion, ApplicationMetadata.CuraDebugMode)
self._plugin_registry.addType("profile_reader", self._addProfileReader)
self._plugin_registry.addType("profile_writer", self._addProfileWriter)