Merge pull request #220 from Dliwk/auto-enable-plguins-headless

Meta subsytem now enables new plugin by default in headless builds
This commit is contained in:
Eric Froemling 2020-12-22 09:53:40 -08:00 committed by GitHub
commit 111d148264
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 1 deletions

View File

@ -1,3 +1,6 @@
### 1.5.30 (20263)
- Meta subsytem now enables new plugin by default in headless builds
### 1.5.29 (20246)
- Exposed ba method/class initing in public C++ layer.
- The 'restart' and 'shutdown' commands in the server script now default to immediate=True

View File

@ -99,7 +99,16 @@ class MetadataSubsystem:
class_path=class_path,
available=True))
if class_path not in plugstates:
plugstates[class_path] = {'enabled': False}
if _ba.app.headless_mode:
# If we running in headless mode, enable plugin by default
# to allow server admins to get their modified build
# working 'out-of-the-box', without manually updating the
# config.
plugstates[class_path] = {'enabled': True}
else:
# If we running in normal mode, disable plugin by default
# (user can enable it later).
plugstates[class_path] = {'enabled': False}
config_changed = True
found_new = True