disable automation in NSClient mode

This commit is contained in:
Milos Kozak 2021-11-16 21:40:32 +01:00
parent f800b85f62
commit 9a2d254365

View file

@ -64,7 +64,6 @@ class AutomationPlugin @Inject constructor(
.shortName(R.string.automation_short)
.showInList(config.APS)
.neverVisible(!config.APS)
.alwaysEnabled(!config.APS)
.preferencesId(R.xml.pref_automation)
.description(R.string.automation_description),
aapsLogger, rh, injector
@ -94,6 +93,8 @@ class AutomationPlugin @Inject constructor(
}
}
override fun specialEnableCondition(): Boolean = !config.NSCLIENT
override fun onStart() {
locationServiceHelper.startService(context)