Plugins: Support loading optional plugins

Add optional-plugins GSetting, automatically load any plugins specified
there at startup, and allow getting, loading and unloading optional
plugins via Application.PluginManager.
This commit is contained in:
Michael Gratton 2020-03-02 12:08:31 +11:00 committed by Michael James Gratton
parent 627bfb7c89
commit 0c526f6644
3 changed files with 82 additions and 0 deletions

View file

@ -141,6 +141,12 @@
be displayed.</description>
</key>
<key name="optional-plugins" type="as">
<default>[]</default>
<summary>List of optional plugins</summary>
<description>Plugins listed here will be loaded on startup.</description>
</key>
<key name="migrated-config" type="b">
<default>false</default>
<summary>Whether we migrated the old settings</summary>