Skip to content
This repository was archived by the owner on Dec 3, 2024. It is now read-only.

Commit 54f36e0

Browse files
committed
Fix empty config visibility
1 parent bf0aefc commit 54f36e0

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

XOutput/UI/Component/MappingViewModel.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,14 @@ protected void SetSelected(MapperData mapperData)
6262
Model.SelectedInput = mapperData.Source;
6363
Model.ConfigVisibility = System.Windows.Visibility.Visible;
6464
}
65-
if (mapperData.Source != null)
65+
if (mapperData.Source == null)
66+
{
67+
Model.ConfigVisibility = System.Windows.Visibility.Collapsed;
68+
}
69+
else
70+
{
6671
SelectionChanged(Model.SelectedInput);
72+
}
6773
}
6874

6975
protected void SelectionChanged(InputSource type)

0 commit comments

Comments
 (0)