Skip to content

Commit

Permalink
调整提示逻辑
Browse files Browse the repository at this point in the history
  • Loading branch information
mujianwu committed Dec 31, 2024
1 parent d05d31b commit c756910
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion UotanToolbox/Assets/Resources.Designer.cs

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

2 changes: 1 addition & 1 deletion UotanToolbox/Assets/Resources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -1547,6 +1547,6 @@ If you wish to replace Magisk, please first select your Magisk on the Basic Flas
<value>Show all parts</value>
</data>
<data name="Wiredflash_RelockTip" xml:space="preserve">
<value>You have selected the script to flash all and relock the bootloader, are you sure you want to continue?</value>
<value>You have selected the script to relock the bootloader, are you sure you want to continue?</value>
</data>
</root>
2 changes: 1 addition & 1 deletion UotanToolbox/Assets/Resources.zh-CN.resx
Original file line number Diff line number Diff line change
Expand Up @@ -1544,6 +1544,6 @@ ADB下填写序号,一次一个!</value>
<value>显示物理分区</value>
</data>
<data name="Wiredflash_RelockTip" xml:space="preserve">
<value>您选择了全部刷入并回锁的脚本,确认继续吗?</value>
<value>您选择了会进行回锁操作的脚本,确认继续吗?</value>
</data>
</root>
6 changes: 4 additions & 2 deletions UotanToolbox/Features/Wiredflash/WiredflashView.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,8 @@ private async void OpenBatFile(object sender, RoutedEventArgs args)
if (files.Count >= 1)
{
BatFile.Text = StringHelper.FilePath(files[0].Path.ToString());
if (BatFile.Text.Contains("lock"))
string batfile = FileHelper.Readtxt(BatFile.Text);
if (batfile.Contains("oem lock"))
{
Global.MainDialogManager.CreateDialog()
.WithTitle(GetTranslation("Common_Warn"))
Expand All @@ -615,7 +616,8 @@ private async void OpenBatFile(object sender, RoutedEventArgs args)
if (files.Count >= 1)
{
BatFile.Text = StringHelper.FilePath(files[0].Path.ToString());
if (BatFile.Text.Contains("lock"))
string batfile = FileHelper.Readtxt(BatFile.Text);
if (batfile.Contains("oem lock"))
{
Global.MainDialogManager.CreateDialog()
.WithTitle(GetTranslation("Common_Warn"))
Expand Down

0 comments on commit c756910

Please sign in to comment.