added a quit key to the trade menu
This commit is contained in:
parent
3055a27288
commit
f6b11f4975
1 changed files with 5 additions and 1 deletions
|
@ -378,7 +378,7 @@ public static class Program
|
||||||
Console.ResetColor();
|
Console.ResetColor();
|
||||||
Console.WriteLine($"Trade confirmations for {account.AccountName}...");
|
Console.WriteLine($"Trade confirmations for {account.AccountName}...");
|
||||||
Console.WriteLine("No action will be made without your confirmation.");
|
Console.WriteLine("No action will be made without your confirmation.");
|
||||||
Console.WriteLine("[a]ccept [d]eny [i]gnore [enter] Confirm"); // accept = 1, deny = 0, ignore = -1
|
Console.WriteLine("[a]ccept [d]eny [i]gnore [enter] Confirm [q]uit"); // accept = 1, deny = 0, ignore = -1
|
||||||
Console.WriteLine();
|
Console.WriteLine();
|
||||||
|
|
||||||
for (var t = 0; t < trades.Length; t++)
|
for (var t = 0; t < trades.Length; t++)
|
||||||
|
@ -432,6 +432,10 @@ public static class Program
|
||||||
case ConsoleKey.I:
|
case ConsoleKey.I:
|
||||||
tradeActions[selected] = TradeAction.Ignore;
|
tradeActions[selected] = TradeAction.Ignore;
|
||||||
break;
|
break;
|
||||||
|
case ConsoleKey.Escape:
|
||||||
|
case ConsoleKey.Q:
|
||||||
|
Console.WriteLine("Quitting...");
|
||||||
|
return;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue