WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 5a16897

Browse files
committed
调整提示
1 parent 6aa9d0d commit 5a16897

File tree

5 files changed

+17
-2
lines changed

5 files changed

+17
-2
lines changed

UotanToolbox/Assets/Resources.Designer.cs

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

UotanToolbox/Assets/Resources.resx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1510,4 +1510,7 @@ If you wish to replace Magisk, please first select your Magisk on the Basic Flas
15101510
<data name="Modifypartition_EnterName" xml:space="preserve">
15111511
<value>Please enter the partition name!</value>
15121512
</data>
1513+
<data name="Home_ShutDownTip" xml:space="preserve">
1514+
<value>Execution successful, unplug the device connection cable to shut down!</value>
1515+
</data>
15131516
</root>

UotanToolbox/Assets/Resources.zh-CN.resx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1507,4 +1507,7 @@ ADB下填写序号,一次一个!</value>
15071507
<data name="Modifypartition_EnterName" xml:space="preserve">
15081508
<value>请输入分区名称!</value>
15091509
</data>
1510+
<data name="Home_ShutDownTip" xml:space="preserve">
1511+
<value>执行成功,拔出设备连接线即可关机!</value>
1512+
</data>
15101513
</root>

UotanToolbox/Features/FormatExtract/FormatExtractView.axaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ private async void FastbootFormat(object sender, RoutedEventArgs args)
470470
if (await GetDevicesInfo.SetDevicesInfoLittle())
471471
{
472472
MainViewModel sukiViewModel = GlobalData.MainViewModelInstance;
473-
if (sukiViewModel.Status == GetTranslation("Home_Fastboot"))
473+
if (sukiViewModel.Status == GetTranslation("Home_Fastboot") || sukiViewModel.Status == GetTranslation("Home_Fastbootd"))
474474
{
475475
if (!string.IsNullOrEmpty(FormatName.Text))
476476
{

UotanToolbox/Features/Home/HomeViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ public async Task PowerOff()
390390
string output = await CallExternalProgram.Fastboot($"-s {Global.thisdevice} oem poweroff");
391391
_ = output.Contains("unknown command")
392392
? Global.MainDialogManager.CreateDialog().WithTitle(GetTranslation("Common_Error")).OfType(NotificationType.Error).WithContent(GetTranslation("Home_NotSupported")).Dismiss().ByClickingBackground().TryShow()
393-
: Global.MainDialogManager.CreateDialog().WithTitle(GetTranslation("Common_Succ")).OfType(NotificationType.Success).WithContent(GetTranslation("Home_Successful")).Dismiss().ByClickingBackground().TryShow();
393+
: Global.MainDialogManager.CreateDialog().WithTitle(GetTranslation("Common_Succ")).OfType(NotificationType.Success).WithContent(GetTranslation("Home_ShutDownTip")).Dismiss().ByClickingBackground().TryShow();
394394
}
395395
else if (sukiViewModel.Status == GetTranslation("Home_OpenHOS"))
396396
{

0 commit comments

Comments
 (0)