diff --git a/DellMonitorControl/ConfigWindow.xaml.cs b/DellMonitorControl/ConfigWindow.xaml.cs index d86d0f7..ed667ee 100644 --- a/DellMonitorControl/ConfigWindow.xaml.cs +++ b/DellMonitorControl/ConfigWindow.xaml.cs @@ -34,6 +34,22 @@ public partial class ConfigWindow : Window spPorts.Children.Clear(); _portRows.Clear(); + // Show unsupported message if no ports available + if (_availablePorts == null || _availablePorts.Count == 0) + { + spPorts.Children.Add(new TextBlock + { + Text = "Unsupported", + Foreground = Brushes.Gray, + FontSize = 16, + FontStyle = FontStyles.Italic, + HorizontalAlignment = HorizontalAlignment.Center, + VerticalAlignment = VerticalAlignment.Center, + Margin = new Thickness(0, 40, 0, 40) + }); + return; + } + foreach (var port in _availablePorts) { var existingPortConfig = config.Ports.FirstOrDefault(p => p.VcpValue == port.Value); diff --git a/DellMonitorControl/DellMonitorControl.csproj b/DellMonitorControl/DellMonitorControl.csproj index 2aac306..5f56174 100644 --- a/DellMonitorControl/DellMonitorControl.csproj +++ b/DellMonitorControl/DellMonitorControl.csproj @@ -13,9 +13,9 @@ - 1.0.15 - 1.0.15.0 - 1.0.15.0 + 1.0.16 + 1.0.16.0 + 1.0.16.0