Skip to content

Commit

Permalink
Fixed warning label for fresh config (#1114)
Browse files Browse the repository at this point in the history
  • Loading branch information
DocMoebiuz authored Feb 3, 2023
1 parent e8a5936 commit bdbdbab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion UI/Dialogs/InputConfigWizard.cs
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,7 @@ private void inputTypeComboBox_SelectedIndexChanged(object sender, EventArgs e)
break;
}

DeviceNotAvailableWarningLabel.Visible = (serial == "");
DeviceNotAvailableWarningLabel.Visible = (serial == "") && currentInputType != DeviceType.NotSet;

if (panel != null)
{
Expand Down
2 changes: 1 addition & 1 deletion UI/Panels/OutputWizard/DisplayPanel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ private void ShowActiveDisplayPanel(object sender, string serial, bool panelEnab

testSettingsGroupBox.Visible = true;

DeviceNotAvailableWarningLabel.Visible = serial == "" && SelectedItemValue != "-";
DeviceNotAvailableWarningLabel.Visible = serial == "" && SelectedItemValue != "-" && config != null;

if (SelectedItemValue == MobiFlightOutput.TYPE)
{
Expand Down

0 comments on commit bdbdbab

Please sign in to comment.