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