Check if AutotunePlugin is enabled in ActionRunAutotune

This commit is contained in:
Philoul 2022-05-06 23:52:26 +02:00
parent 70ed332b7c
commit bf46d8a605
2 changed files with 2 additions and 2 deletions

View file

@ -332,7 +332,7 @@ class AutomationPlugin @Inject constructor(
ActionCarePortalEvent(injector),
ActionProfileSwitchPercent(injector),
ActionProfileSwitch(injector),
//ActionRunAutotune(injector),
ActionRunAutotune(injector),
ActionSendSMS(injector)
)
}

View file

@ -85,5 +85,5 @@ class ActionRunAutotune(injector: HasAndroidInjector) : Action(injector) {
return this
}
override fun isValid(): Boolean = profileFunction.getProfile() != null
override fun isValid(): Boolean = profileFunction.getProfile() != null && activePlugin.getSpecificPluginsListByInterface(Autotune::class.java).first().isEnabled()
}