diff --git a/automation/src/main/java/info/nightscout/androidaps/plugins/general/automation/AutomationEvent.kt b/automation/src/main/java/info/nightscout/androidaps/plugins/general/automation/AutomationEvent.kt index 07ac5924d2..c372d1d216 100644 --- a/automation/src/main/java/info/nightscout/androidaps/plugins/general/automation/AutomationEvent.kt +++ b/automation/src/main/java/info/nightscout/androidaps/plugins/general/automation/AutomationEvent.kt @@ -47,6 +47,7 @@ class AutomationEvent(private val injector: HasAndroidInjector) { fun areActionsValid(): Boolean { var result = true for (action in actions) result = result && action.isValid() + if (!result) isEnabled = false return result }