Skip to content

Commit

Permalink
Skip extension installers if all disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
space-nuko committed Mar 27, 2023
1 parent fc8e100 commit 56f62d3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand Down

0 comments on commit 56f62d3

Please sign in to comment.