Merge pull request #12487 from AUTOMATIC1111/disable-extensions-installer-with-arg

pathc: also disable extensions installer with arg
This commit is contained in:
AUTOMATIC1111 2023-08-12 08:57:35 +03:00 committed by GitHub
commit 9dae70da79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -243,7 +243,7 @@ def list_extensions(settings_file):
disabled_extensions = set(settings.get('disabled_extensions', []))
disable_all_extensions = settings.get('disable_all_extensions', 'none')
if disable_all_extensions != 'none':
if disable_all_extensions != 'none' or args.disable_extra_extensions or args.disable_all_extensions:
return []
return [x for x in os.listdir(extensions_dir) if x not in disabled_extensions]