diff options
author | Joram Wilander <jwawilander@gmail.com> | 2017-10-25 08:17:17 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-25 08:17:17 -0400 |
commit | 16b845c0d77535ea306339f7a8bd22fc72f8a3c5 (patch) | |
tree | e768b8d1ca5cc3f2e55207ea73c5954b37f708ed /model/config.go | |
parent | 9c0575ce6ef662c18ad7eb91bf6084c6fac1b7ae (diff) | |
download | chat-16b845c0d77535ea306339f7a8bd22fc72f8a3c5.tar.gz chat-16b845c0d77535ea306339f7a8bd22fc72f8a3c5.tar.bz2 chat-16b845c0d77535ea306339f7a8bd22fc72f8a3c5.zip |
Differentiate between installed and activated states for plugins (#7706)
Diffstat (limited to 'model/config.go')
-rw-r--r-- | model/config.go | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/model/config.go b/model/config.go index d3446f533..a93defa7f 100644 --- a/model/config.go +++ b/model/config.go @@ -504,9 +504,14 @@ type JobSettings struct { RunScheduler *bool } +type PluginState struct { + Enable bool +} + type PluginSettings struct { - Enable *bool - Plugins map[string]interface{} + Enable *bool + Plugins map[string]interface{} + PluginStates map[string]*PluginState } type Config struct { @@ -1454,6 +1459,10 @@ func (o *Config) SetDefaults() { o.PluginSettings.Plugins = make(map[string]interface{}) } + if o.PluginSettings.PluginStates == nil { + o.PluginSettings.PluginStates = make(map[string]*PluginState) + } + o.defaultWebrtcSettings() } |