Skip to content

Commit

Permalink
Merge pull request #81 from avouspierre/alpha
Browse files Browse the repository at this point in the history
fix issues with double close menu and seems fix issues on greyed buttons
  • Loading branch information
bjornoleh committed Apr 11, 2024
2 parents 11a0484 + e778233 commit adede04
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions FreeAPS/Sources/Modules/Base/BaseStateModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion FreeAPS/Sources/Modules/Home/HomeStateModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit adede04

Please sign in to comment.