Skip to content

Commit

Permalink
[Interproject exchange] Fix load devices in advanced project (#1513)
Browse files Browse the repository at this point in the history
Fixes #1504.

```ChangeLog
Исправлена ошика отображения устройств связуемого проекта в межпроектном обмене;
```
  • Loading branch information
KirillGutyrchik authored Jan 20, 2025
1 parent e941d9c commit 22afee2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/InterprojectExchange/Forms/InterprojectExchangeForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -982,7 +982,9 @@ private void advProjNameComboBox_SelectedItemChanged(object sender,

var model = interprojectExchange.GetModel(advProjNameComboBox.Items[selectedIndex].ToString());

if (selectedIndex >= 0 && model?.Loaded is true)
if (selectedIndex >= 0 &&
selectedIndex != prevSelectedIndex &&
model?.Loaded is true)
{
LoadAdvProjData(advProjNameComboBox.Text);
prevSelectedIndex = selectedIndex;
Expand Down

0 comments on commit 22afee2

Please sign in to comment.