From a98656c09258237ee1a12451c0da42d4c400af98 Mon Sep 17 00:00:00 2001 From: alex-poor Date: Fri, 20 Nov 2026 21:58:21 +1300 Subject: [PATCH] fix(keys): make lgsThreshold setting reachable without Dynamic ISF ApsLgsThreshold had `dependency = ApsUseDynamicSensitivity`, which hides the Low Glucose Suspend threshold setting whenever Dynamic ISF is off. autoISF users who run with DynISF disabled therefore could not set the LGS floor at all, even though the algorithm reads lgsThreshold regardless of DynISF. Remove the dependency so the setting is always visible. Co-Authored-By: Claude Opus 4.8 --- .../keys/src/main/kotlin/app/aaps/core/keys/UnitDoubleKey.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/keys/src/main/kotlin/app/aaps/core/keys/UnitDoubleKey.kt b/core/keys/src/main/kotlin/app/aaps/core/keys/UnitDoubleKey.kt index 4f67f00c237d..28b289313c2a 100644 --- a/core/keys/src/main/kotlin/app/aaps/core/keys/UnitDoubleKey.kt +++ b/core/keys/src/main/kotlin/app/aaps/core/keys/UnitDoubleKey.kt @@ -23,5 +23,8 @@ enum class UnitDoubleKey( OverviewHypoTarget("hypo_target", 160.0, 108, 180, defaultedBySM = true), OverviewLowMark("low_mark", 72.0, 25, 160, showInNsClientMode = false, hideParentScreenIfHidden = true), OverviewHighMark("high_mark", 180.0, 90, 250, showInNsClientMode = false), - ApsLgsThreshold("lgsThreshold", 65.0, 60, 100, defaultedBySM = true, dependency = BooleanKey.ApsUseDynamicSensitivity) + // dependency on ApsUseDynamicSensitivity removed: LGS threshold is a general safety floor, not a + // DynISF-only setting, and hiding it when DynISF is off makes it unreachable for autoISF users who + // run with DynISF disabled. The autoISF algorithm reads lgsThreshold regardless of DynISF. + ApsLgsThreshold("lgsThreshold", 65.0, 60, 100, defaultedBySM = true) } \ No newline at end of file