This commit is contained in:
lesion 2024-01-03 22:21:03 +01:00
parent b6358e312d
commit e3d8d2fa5f
No known key found for this signature in database
GPG key ID: 352918250B012177

View file

@ -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)
}