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 {
|
||||
return err
|
||||
}
|
||||
|
||||
conf = m.db.GetPluginConfByID(pluginID) // conf might be updated by instance
|
||||
conf.Enabled = enabled
|
||||
return m.db.UpdatePluginConf(conf)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue