fix adb auto detect logic

This commit is contained in:
lanhao34
2023-02-15 19:10:59 -05:00
parent f34bc07346
commit efac9af7a6

View File

@@ -1921,7 +1921,7 @@ namespace MaaWpfGui
ConnectConfig = emulators.First();
AdbPath = adapter.GetAdbPathByEmulatorName(ConnectConfig) ?? AdbPath;
if (!string.IsNullOrEmpty(AdbPath))
if (string.IsNullOrEmpty(AdbPath))
{
error = Localization.GetString("AdbException");
return false;