Merge remote-tracking branch 'origin/dev' into ns15

This commit is contained in:
Milos Kozak 2023-01-21 23:55:29 +01:00
commit bd765be584

View file

@ -187,7 +187,10 @@ class PluginStore @Inject constructor(
get() = activeAPSStore ?: checkNotNull(activeAPSStore) { "No APS selected" } get() = activeAPSStore ?: checkNotNull(activeAPSStore) { "No APS selected" }
override val activePump: Pump override val activePump: Pump
get() = activePumpStore ?: checkNotNull(activePumpStore) { "No pump selected" } get() = activePumpStore
// Following line can be used only during initialization
?: getTheOneEnabledInArray(getSpecificPluginsList(PluginType.PUMP), PluginType.PUMP) as Pump?
?: checkNotNull(activePumpStore) { "No pump selected" }
override val activeSensitivity: Sensitivity override val activeSensitivity: Sensitivity
get() = activeSensitivityStore get() = activeSensitivityStore