diff --git a/src/SSMSPlusSearch/UI/SchemaSearchControlVM.cs b/src/SSMSPlusSearch/UI/SchemaSearchControlVM.cs index b67021b..824de87 100644 --- a/src/SSMSPlusSearch/UI/SchemaSearchControlVM.cs +++ b/src/SSMSPlusSearch/UI/SchemaSearchControlVM.cs @@ -99,10 +99,13 @@ private void CreateMatchOnCombo() private void CreateSchemaCombo(IEnumerable schemas) { + SchemaObjectsVM.Items.Clear(); + foreach (var schema in schemas) { SchemaObjectsVM.Items.Add(new ComboCheckBoxItem() { Text = schema, IsChecked = true, Value = schema }); } + SchemaObjectsVM.SelectionChanged += ComboVM_SelectionChanged; }