Show 'Unsupported' in config dialog for monitors without input options
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -34,6 +34,22 @@ public partial class ConfigWindow : Window
|
|||||||
spPorts.Children.Clear();
|
spPorts.Children.Clear();
|
||||||
_portRows.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)
|
foreach (var port in _availablePorts)
|
||||||
{
|
{
|
||||||
var existingPortConfig = config.Ports.FirstOrDefault(p => p.VcpValue == port.Value);
|
var existingPortConfig = config.Ports.FirstOrDefault(p => p.VcpValue == port.Value);
|
||||||
|
|||||||
@@ -13,9 +13,9 @@
|
|||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Version>1.0.15</Version>
|
<Version>1.0.16</Version>
|
||||||
<AssemblyVersion>1.0.15.0</AssemblyVersion>
|
<AssemblyVersion>1.0.16.0</AssemblyVersion>
|
||||||
<FileVersion>1.0.15.0</FileVersion>
|
<FileVersion>1.0.16.0</FileVersion>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
Reference in New Issue
Block a user