Skip to content

Commit

Permalink
调整提示
Browse files Browse the repository at this point in the history
  • Loading branch information
mujianwu committed Dec 29, 2024
1 parent 6aa9d0d commit 5a16897
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 2 deletions.
9 changes: 9 additions & 0 deletions UotanToolbox/Assets/Resources.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions UotanToolbox/Assets/Resources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -1510,4 +1510,7 @@ If you wish to replace Magisk, please first select your Magisk on the Basic Flas
<data name="Modifypartition_EnterName" xml:space="preserve">
<value>Please enter the partition name!</value>
</data>
<data name="Home_ShutDownTip" xml:space="preserve">
<value>Execution successful, unplug the device connection cable to shut down!</value>
</data>
</root>
3 changes: 3 additions & 0 deletions UotanToolbox/Assets/Resources.zh-CN.resx
Original file line number Diff line number Diff line change
Expand Up @@ -1507,4 +1507,7 @@ ADB下填写序号,一次一个!</value>
<data name="Modifypartition_EnterName" xml:space="preserve">
<value>请输入分区名称!</value>
</data>
<data name="Home_ShutDownTip" xml:space="preserve">
<value>执行成功,拔出设备连接线即可关机!</value>
</data>
</root>
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ private async void FastbootFormat(object sender, RoutedEventArgs args)
if (await GetDevicesInfo.SetDevicesInfoLittle())
{
MainViewModel sukiViewModel = GlobalData.MainViewModelInstance;
if (sukiViewModel.Status == GetTranslation("Home_Fastboot"))
if (sukiViewModel.Status == GetTranslation("Home_Fastboot") || sukiViewModel.Status == GetTranslation("Home_Fastbootd"))
{
if (!string.IsNullOrEmpty(FormatName.Text))
{
Expand Down
2 changes: 1 addition & 1 deletion UotanToolbox/Features/Home/HomeViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ public async Task PowerOff()
string output = await CallExternalProgram.Fastboot($"-s {Global.thisdevice} oem poweroff");
_ = output.Contains("unknown command")
? Global.MainDialogManager.CreateDialog().WithTitle(GetTranslation("Common_Error")).OfType(NotificationType.Error).WithContent(GetTranslation("Home_NotSupported")).Dismiss().ByClickingBackground().TryShow()
: Global.MainDialogManager.CreateDialog().WithTitle(GetTranslation("Common_Succ")).OfType(NotificationType.Success).WithContent(GetTranslation("Home_Successful")).Dismiss().ByClickingBackground().TryShow();
: Global.MainDialogManager.CreateDialog().WithTitle(GetTranslation("Common_Succ")).OfType(NotificationType.Success).WithContent(GetTranslation("Home_ShutDownTip")).Dismiss().ByClickingBackground().TryShow();
}
else if (sukiViewModel.Status == GetTranslation("Home_OpenHOS"))
{
Expand Down

0 comments on commit 5a16897

Please sign in to comment.