mirror of
https://framagit.org/les/gancio.git
synced 2025-01-31 16:42:22 +01:00
plugins: do not reload a plugin if the change in its settings was to disable it
This commit is contained in:
parent
ac6bb9ca80
commit
a5e108c86f
1 changed files with 2 additions and 1 deletions
|
@ -134,7 +134,8 @@ const settingsController = {
|
|||
try {
|
||||
const pluginController = require('./plugins')
|
||||
pluginController.unloadPlugin(pluginName)
|
||||
pluginController.loadPlugin(pluginName)
|
||||
// Do not reload the plugin if the change in its settings was to disable it
|
||||
value.enable && pluginController.loadPlugin(pluginName)
|
||||
} catch (e) {
|
||||
log.error(e)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue