Skip to content

Commit

Permalink
Merge pull request #11 from patelriki13/duplicate-schema-v3
Browse files Browse the repository at this point in the history
SchemaSearch: Fixed duplicate schema added after every re-indexing
  • Loading branch information
akarzazi authored Aug 1, 2020
2 parents 641cba7 + 1c5c783 commit 6db535f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/SSMSPlusSearch/UI/SchemaSearchControlVM.cs
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,13 @@ private void CreateMatchOnCombo()

private void CreateSchemaCombo(IEnumerable<string> schemas)
{
SchemaObjectsVM.Items.Clear();

foreach (var schema in schemas)
{
SchemaObjectsVM.Items.Add(new ComboCheckBoxItem<string>() { Text = schema, IsChecked = true, Value = schema });
}

SchemaObjectsVM.SelectionChanged += ComboVM_SelectionChanged;
}

Expand Down

0 comments on commit 6db535f

Please sign in to comment.