Actually ask if you want to test Lite-On command

This commit is contained in:
Rebecca Wallander
2025-11-30 10:28:03 +01:00
committed by Nat Portillo
parent c0f81cbfc1
commit e39fc57a0d
2 changed files with 11 additions and 0 deletions

View File

@@ -288,6 +288,9 @@ In you are unsure, please press N to not continue.</value>
</data>
<data name="Do_you_want_to_try_MediaTek_commands" xml:space="preserve">
<value>Do you have want to try MediaTek vendor command F1h subcommand 06h?</value>
</data>
<data name="Do_you_want_to_try_LiteOn_commands" xml:space="preserve">
<value>Do you have want to try Lite-On vendor commands?</value>
</data>
<data name="This_is_dangerous" xml:space="preserve">
<value>THIS IS DANGEROUS AND CAN IRREVERSIBLY DESTROY YOUR DRIVE (IF IN DOUBT PRESS 'N')</value>

View File

@@ -699,6 +699,14 @@ sealed class DeviceReportCommand : AsyncCommand<DeviceReportCommand.Settings>
false);
}
if(!tryLiteOn)
{
tryLiteOn |=
AnsiConsole
.Confirm($"[italic]{UI.Do_you_want_to_try_LiteOn_commands} [red]{UI.This_is_dangerous}[/][/]",
false);
}
tryMediaTekF106 =
AnsiConsole
.Confirm($"[italic]{UI.Do_you_want_to_try_MediaTek_commands} [red]{UI.This_is_dangerous}[/][/]",