Skip to content

Commit c756910

Browse files
committed
调整提示逻辑
1 parent d05d31b commit c756910

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

UotanToolbox/Assets/Resources.Designer.cs

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

UotanToolbox/Assets/Resources.resx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1547,6 +1547,6 @@ If you wish to replace Magisk, please first select your Magisk on the Basic Flas
15471547
<value>Show all parts</value>
15481548
</data>
15491549
<data name="Wiredflash_RelockTip" xml:space="preserve">
1550-
<value>You have selected the script to flash all and relock the bootloader, are you sure you want to continue?</value>
1550+
<value>You have selected the script to relock the bootloader, are you sure you want to continue?</value>
15511551
</data>
15521552
</root>

UotanToolbox/Assets/Resources.zh-CN.resx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1544,6 +1544,6 @@ ADB下填写序号,一次一个!</value>
15441544
<value>显示物理分区</value>
15451545
</data>
15461546
<data name="Wiredflash_RelockTip" xml:space="preserve">
1547-
<value>您选择了全部刷入并回锁的脚本,确认继续吗?</value>
1547+
<value>您选择了会进行回锁操作的脚本,确认继续吗?</value>
15481548
</data>
15491549
</root>

UotanToolbox/Features/Wiredflash/WiredflashView.axaml.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,8 @@ private async void OpenBatFile(object sender, RoutedEventArgs args)
591591
if (files.Count >= 1)
592592
{
593593
BatFile.Text = StringHelper.FilePath(files[0].Path.ToString());
594-
if (BatFile.Text.Contains("lock"))
594+
string batfile = FileHelper.Readtxt(BatFile.Text);
595+
if (batfile.Contains("oem lock"))
595596
{
596597
Global.MainDialogManager.CreateDialog()
597598
.WithTitle(GetTranslation("Common_Warn"))
@@ -615,7 +616,8 @@ private async void OpenBatFile(object sender, RoutedEventArgs args)
615616
if (files.Count >= 1)
616617
{
617618
BatFile.Text = StringHelper.FilePath(files[0].Path.ToString());
618-
if (BatFile.Text.Contains("lock"))
619+
string batfile = FileHelper.Readtxt(BatFile.Text);
620+
if (batfile.Contains("oem lock"))
619621
{
620622
Global.MainDialogManager.CreateDialog()
621623
.WithTitle(GetTranslation("Common_Warn"))

0 commit comments

Comments
 (0)