diff options
| author | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2020-10-19 15:59:53 +0300 |
|---|---|---|
| committer | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2020-10-19 15:59:53 +0300 |
| commit | e9ea1f69f6ae9428e542b887be42d7fd7e1d560c (patch) | |
| tree | 4b4885675c9df32c13918909d2bf8dd1dffc5bc0 /Software/Visual_Studio/Tango.SharedUI | |
| parent | 36ece3538d92bb3b5534fa72f7dbddca11e0b78c (diff) | |
| download | Tango-e9ea1f69f6ae9428e542b887be42d7fd7e1d560c.tar.gz Tango-e9ea1f69f6ae9428e542b887be42d7fd7e1d560c.zip | |
Fixed SearchComboBox issue with Run click.
Fixed no error handling on MS hw version loading.
Diffstat (limited to 'Software/Visual_Studio/Tango.SharedUI')
| -rw-r--r-- | Software/Visual_Studio/Tango.SharedUI/Controls/SearchComboBox.cs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Software/Visual_Studio/Tango.SharedUI/Controls/SearchComboBox.cs b/Software/Visual_Studio/Tango.SharedUI/Controls/SearchComboBox.cs index f1543e05f..583d7b810 100644 --- a/Software/Visual_Studio/Tango.SharedUI/Controls/SearchComboBox.cs +++ b/Software/Visual_Studio/Tango.SharedUI/Controls/SearchComboBox.cs @@ -114,10 +114,13 @@ namespace Tango.SharedUI.Controls private void _listBox_PreviewMouseLeftButtonUp(object sender, MouseButtonEventArgs e) { - if (_listBox.SelectedItem != null && (e.OriginalSource as FrameworkElement != null) && (e.OriginalSource as FrameworkElement).DataContext == _listBox.SelectedItem) + if (_listBox.SelectedItem != null) { - IsOpened = false; - SelectedItem = _listBox.SelectedItem; + if (SelectedItem != _listBox.SelectedItem) + { + IsOpened = false; + SelectedItem = _listBox.SelectedItem; + } } } |
