diff --git a/FloatingGlucose/FormGlucoseSettings.cs b/FloatingGlucose/FormGlucoseSettings.cs index 9b6c323..22e248a 100644 --- a/FloatingGlucose/FormGlucoseSettings.cs +++ b/FloatingGlucose/FormGlucoseSettings.cs @@ -146,7 +146,8 @@ private void FormGlucoseSettings_Load(object sender, EventArgs e) } this.cbImageLayouts.Items.Clear(); - + + foreach (var layout in Enum.GetNames(typeof(ImageLayout)) ) { @@ -158,6 +159,11 @@ private void FormGlucoseSettings_Load(object sender, EventArgs e) } } + if(this.cbImageLayouts.SelectedIndex == -1) + { + this.cbImageLayouts.SelectedIndex = 0; + } + //de-uglify glucosesettings by setting a default plugin even if there was none selected