fix startup crash

This commit is contained in:
Milos Kozak 2023-01-21 23:50:03 +01:00
parent c4353e2e3e
commit 4328597641

View file

@ -187,7 +187,10 @@ class PluginStore @Inject constructor(
get() = activeAPSStore ?: checkNotNull(activeAPSStore) { "No APS selected" }
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
get() = activeSensitivityStore