From dfec8c07b5f9cd67e7e31c3f8dd82274e0351b10 Mon Sep 17 00:00:00 2001 From: Dave Friedel Date: Wed, 7 Jan 2026 12:14:28 -0500 Subject: [PATCH] Show 'Unsupported' in config dialog for monitors without input options MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- DellMonitorControl/ConfigWindow.xaml.cs | 16 ++++++++++++++++ DellMonitorControl/DellMonitorControl.csproj | 6 +++--- 2 files changed, 19 insertions(+), 3 deletions(-) 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