Merge pull request #2216 from 2flea/dev_auto_loop

Deactivate Automation if Loop is disabled, not only if it is suspended
This commit is contained in:
Milos Kozak 2019-12-02 21:12:27 +01:00 committed by GitHub
commit 9512b153c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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