Clean code

This commit is contained in:
2025-09-14 00:21:30 +02:00
parent 4a388dcfa9
commit 1755b5cb54
8 changed files with 3 additions and 74 deletions

View File

@@ -46,7 +46,6 @@ public class AutoDetectUi : WindowMediatorSubscriberBase
public override bool DrawConditions()
{
// Visible when explicitly opened; allow drawing even if discovery is disabled to show hint
return true;
}
@@ -168,8 +167,6 @@ public class AutoDetectUi : WindowMediatorSubscriberBase
return true;
}
}
// 2) Fallback on alias/name (legacy compatibility)
var key = NormalizeKey(e.DisplayName ?? e.Name);
if (string.IsNullOrEmpty(key)) return false;
foreach (var p in _pairManager.DirectPairs)
@@ -180,7 +177,6 @@ public class AutoDetectUi : WindowMediatorSubscriberBase
}
catch
{
// ignore
}
return false;
}