Browse Source

Fix register history layout change subscription to settings manager

dnzxy 2 years ago
parent
commit
cd816fc68f
1 changed files with 1 additions and 0 deletions
  1. 1 0
      FreeAPS/Sources/Modules/DataTable/DataTableStateModel.swift

+ 1 - 0
FreeAPS/Sources/Modules/DataTable/DataTableStateModel.swift

@@ -276,6 +276,7 @@ extension DataTable.StateModel:
     GlucoseObserver
 {
     func settingsDidChange(_: FreeAPSSettings) {
+        historyLayout = settingsManager.settings.historyLayout
         setupTreatments()
     }