diff options
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() } |