Skip to content

Commit

Permalink
调整输出
Browse files Browse the repository at this point in the history
  • Loading branch information
mujianwu committed Jan 4, 2025
1 parent c756910 commit 7eaefc0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion UotanToolbox/Features/Wiredflash/WiredflashView.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ private static string GetTranslation(string key)
}

private readonly string fastboot_log_path = Path.Combine(Global.log_path, "fastboot.txt");
private readonly string update_status = Path.Combine(Global.log_path, "update.txt");
private string output = "";

public WiredflashView()
Expand Down Expand Up @@ -341,7 +342,7 @@ private async void StartTXTFlash(object sender, RoutedEventArgs args)
}
}
string slot = "";
await Fastboot($"-s {Global.thisdevice} getvar snapshot-update-status");
FileHelper.Write(update_status, await CallExternalProgram.Fastboot($"-s {Global.thisdevice} getvar snapshot-update-status"));
string active = await CallExternalProgram.Fastboot($"-s {Global.thisdevice} getvar current-slot");
if (active.Contains("current-slot: a"))
{
Expand Down

0 comments on commit 7eaefc0

Please sign in to comment.