Browse Source

fix(de-ame): ChoicePrompt starts from 0, not 1

pull/13/head
he3als 1 month ago
parent
commit
ad8f622ffe
Signed by: he3als GPG Key ID: A0FC52EA5368ECF4
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/Actions/Deameliorate.cs

+ 2
- 2
src/Actions/Deameliorate.cs View File

@ -28,13 +28,13 @@ Although user data should be kept, we strongly recommend
making backups of any important user data.
Continue? (Y/N): "
}.Start().Value == 2) return true;
}.Start().Value == 1) return true;
Program.Frame.Clear();
(_mountedPath, _, _winVer, _, _) = SelectWindowsImage.GetMediaPath();
if (_mountedPath == null) return false;
if (new ChoicePrompt {Text = $"\r\nYour Windows image is {_winVer}. Continue? (Y/N): "}.Start().Value == 2)
if (new ChoicePrompt {Text = $"\r\nYour Windows image is {_winVer}. Continue? (Y/N): "}.Start().Value == 1)
return true;
var fc = Console.ForegroundColor;


Loading…
Cancel
Save