fix default extensions disabled when (de)activating any other extension

This commit is contained in:
Eric Le Lay 2018-10-14 17:34:50 +02:00
parent 97db9c97d2
commit 2f67507a4c
1 changed files with 3 additions and 0 deletions

View File

@ -358,6 +358,9 @@ class ExtensionManager(object):
new_enabled = (container.name in new_value)
if new_enabled == container.enabled:
continue
if not new_enabled and container.metadata.mandatory_in_current_ui:
# forced extensions are never listed in extensions.enabled
continue
logger.info('Extension "%s" is now %s', container.name,
'enabled' if new_enabled else 'disabled')