fix issues with double "close" menu and seems fix issues on greyed buttons. https://github.com/nightscout/Open-iAPS/issues/69
@@ -37,6 +37,7 @@ class BaseStateModel<Provider>: StateModel, Injectable where Provider: FreeAPS.P
func hideModal() {
router.mainModalScreen.send(nil)
+ router.mainSecondaryModalView.send(nil)
}
func view(for screen: Screen) -> AnyView {
@@ -353,7 +353,7 @@ extension Home {
func openCGM() {
- showModal(for: .cgmDirect)
+ router.mainSecondaryModalView.send(router.view(for: .cgmDirect))
func infoPanelTTPercentage(_ hbt_: Double, _ target: Decimal) -> Decimal {