fixed plugin storage update during enable|disable (#188)
This commit is contained in:
parent
909fb80d48
commit
11165faa06
|
|
@ -130,6 +130,8 @@ func (m *Manager) SetPluginEnabled(pluginID uint, enabled bool) error {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
conf = m.db.GetPluginConfByID(pluginID) // conf might be updated by instance
|
||||||
conf.Enabled = enabled
|
conf.Enabled = enabled
|
||||||
return m.db.UpdatePluginConf(conf)
|
return m.db.UpdatePluginConf(conf)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue