Skip to content

Commit

Permalink
fixed not loading glucose unit from settings to set radio button
Browse files Browse the repository at this point in the history
  • Loading branch information
Delubear committed Dec 23, 2020
1 parent 197b382 commit 7c121b7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions GlucoseTrayCore/Views/SettingsWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ public SettingsWindow()
else
radio_source_nightscout.IsChecked = true;

if (model.GlucoseUnit == GlucoseUnitType.MG)
radio_unit_mg.IsChecked = true;
else
radio_unit_mmol.IsChecked = true;

combobox_loglevel.SelectedIndex = (int)model.LogLevel;
combobox_dexcom_server.SelectedIndex = (int)model.DexcomServer;

Expand Down
2 changes: 1 addition & 1 deletion GlucoseTrayCore/appsettings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"appsettings": {
"Version": "11.0.1"
"Version": "11.0.2"
}
}

0 comments on commit 7c121b7

Please sign in to comment.