diff --git a/src/MaaWpfGui/Helper/WinAdapter.cs b/src/MaaWpfGui/Helper/WinAdapter.cs index 561bb96015..6cdd918a0f 100644 --- a/src/MaaWpfGui/Helper/WinAdapter.cs +++ b/src/MaaWpfGui/Helper/WinAdapter.cs @@ -107,13 +107,13 @@ public class WinAdapter public static List GetAdbAddresses(string adbPath) { string output = ExecuteAdbCommand(adbPath, "devices"); + _logger.Information(output); var lines = output.Split('\r', '\n'); - return lines + return [.. lines .Where(line => !line.StartsWith("List of devices attached") && !string.IsNullOrWhiteSpace(line) && line.Contains("device")) - .Select(line => line.Split('\t')[0]) - .ToList(); + .Select(line => line.Split('\t')[0])]; } ///