From 2b179c673c2525c282b7d37f25ef185d8904697b Mon Sep 17 00:00:00 2001 From: uye <99072975+ABA2396@users.noreply.github.com> Date: Fri, 24 Oct 2025 23:11:40 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20ui=20=E6=97=A5=E5=BF=97=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=20adb=20devices=20=E8=BE=93=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/MaaWpfGui/Helper/WinAdapter.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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])]; } ///