Skip to content
This repository has been archived by the owner on May 19, 2023. It is now read-only.

Commit

Permalink
default image layout
Browse files Browse the repository at this point in the history
  • Loading branch information
Bjorn committed Mar 10, 2017
1 parent b607af8 commit 7d86406
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion FloatingGlucose/FormGlucoseSettings.cs
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 7d86406

Please sign in to comment.