Skip to content

Commit

Permalink
Fixed combo box text selected when Alarm tab is shown.
Browse files Browse the repository at this point in the history
  • Loading branch information
Parozzz committed Sep 30, 2024
1 parent 50aa6a8 commit b4e23ea
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ public void Init()
partitionTypeItems.Add(new { Text = partitionType.GetTranslation(), Value = partitionType });
}
this.partitionTypeComboBox.DataSource = partitionTypeItems;
//Seems every time a tab is shown, these have all the text selected. Not sure why. This fixes it.
this.partitionTypeComboBox.VisibleChanged += (sender, args) => this.partitionTypeComboBox.SelectionLength = 0;
#endregion

#region GroupingType ComboBox
Expand All @@ -53,6 +55,8 @@ public void Init()
gropingTypeItems.Add(new { Text = groupingType.GetTranslation(), Value = groupingType });
}
this.groupingTypeComboBox.DataSource = gropingTypeItems;
//Seems every time a tab is shown, these have all the text selected. Not sure why. This fixes it.
this.groupingTypeComboBox.VisibleChanged += (sender, args) => this.groupingTypeComboBox.SelectionLength = 0;
#endregion
}

Expand Down

0 comments on commit b4e23ea

Please sign in to comment.