From 7eaefc0b8a2b901cbc5900da87dd355dbcca6cf5 Mon Sep 17 00:00:00 2001 From: mujianwu Date: Sat, 4 Jan 2025 15:04:56 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E8=BE=93=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- UotanToolbox/Features/Wiredflash/WiredflashView.axaml.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/UotanToolbox/Features/Wiredflash/WiredflashView.axaml.cs b/UotanToolbox/Features/Wiredflash/WiredflashView.axaml.cs index 66a5a7a..5f00635 100644 --- a/UotanToolbox/Features/Wiredflash/WiredflashView.axaml.cs +++ b/UotanToolbox/Features/Wiredflash/WiredflashView.axaml.cs @@ -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() @@ -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")) {