mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 11:14:25 +00:00
Actually ask if you want to test Lite-On command
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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}[/][/]",
|
||||
|
||||
Reference in New Issue
Block a user