Also deactivate Automation if Loop is disabled, not only if it is suspended.

This commit is contained in:
andreas 2019-11-22 18:30:22 +01:00
parent f537c0090a
commit 63808ad553

View file

@ -161,7 +161,7 @@ object AutomationPlugin : PluginBase(PluginDescription()
private fun processActions() { private fun processActions() {
if (!isEnabled(PluginType.GENERAL)) if (!isEnabled(PluginType.GENERAL))
return return
if (LoopPlugin.getPlugin().isSuspended) { if (LoopPlugin.getPlugin().isSuspended || !LoopPlugin.getPlugin().isEnabled(PluginType.LOOP)) {
if (L.isEnabled(L.AUTOMATION)) if (L.isEnabled(L.AUTOMATION))
log.debug("Loop deactivated") log.debug("Loop deactivated")
return return