Skip extension installers if all disabled
This commit is contained in:
parent
fc8e1008ea
commit
56f62d3851
1 changed files with 4 additions and 0 deletions
|
@ -206,6 +206,10 @@ def list_extensions(settings_file):
|
|||
print(e, file=sys.stderr)
|
||||
|
||||
disabled_extensions = set(settings.get('disabled_extensions', []))
|
||||
disable_all_extensions = settings.get('disable_all_extensions', 'none')
|
||||
|
||||
if disable_all_extensions != 'none':
|
||||
return []
|
||||
|
||||
return [x for x in os.listdir(extensions_dir) if x not in disabled_extensions]
|
||||
|
||||
|
|
Loading…
Reference in a new issue