mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 04:26:05 +08:00
Should check plugins if build-type is 'essentials' now.
part of CURA-6856
This commit is contained in:
parent
3dabd6023b
commit
4bae97529c
@ -43,9 +43,9 @@ except ImportError:
|
||||
CuraDebugMode = DEFAULT_CURA_DEBUG_MODE
|
||||
|
||||
try:
|
||||
from cura.CuraVersion import CuraIsEnterpriseVersion # type: ignore
|
||||
from cura.CuraVersion import CuraIsSecuredVersion # type: ignore
|
||||
except ImportError:
|
||||
CuraIsEnterpriseVersion = True # (DEFAULT_CURA_BUILD_TYPE != "")
|
||||
CuraIsSecuredVersion = (CuraBuildType.lower() in ["essentials", "enterprise", "assured", "secure", "secured"])
|
||||
|
||||
# Each release has a fixed SDK version coupled with it. It doesn't make sense to make it configurable because, for
|
||||
# example Cura 3.2 with SDK version 6.1 will not work. So the SDK version is hard-coded here and left out of the
|
||||
|
@ -720,7 +720,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.CuraIsEnterpriseVersion)
|
||||
self._plugin_registry.setCheckIfTrusted(ApplicationMetadata.CuraIsSecuredVersion)
|
||||
|
||||
self._plugin_registry.addType("profile_reader", self._addProfileReader)
|
||||
self._plugin_registry.addType("profile_writer", self._addProfileWriter)
|
||||
|
Loading…
x
Reference in New Issue
Block a user