From e54e83c2ae1817f8284a663b0fc02188ce3d8716 Mon Sep 17 00:00:00 2001 From: glax Date: Sat, 20 May 2023 16:15:17 +0200 Subject: [PATCH] Moved "Press any key" --- Tranga-CLI/Tranga_Cli.cs | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/Tranga-CLI/Tranga_Cli.cs b/Tranga-CLI/Tranga_Cli.cs index 9b90dc1..a6bfde5 100644 --- a/Tranga-CLI/Tranga_Cli.cs +++ b/Tranga-CLI/Tranga_Cli.cs @@ -76,25 +76,35 @@ public static class Tranga_Cli { case ConsoleKey.L: PrintTasks(taskManager.GetAllTasks()); + Console.WriteLine("Press any key."); + Console.ReadKey(); break; case ConsoleKey.C: CreateTask(taskManager, settings); + Console.WriteLine("Press any key."); + Console.ReadKey(); break; case ConsoleKey.D: RemoveTask (taskManager); + Console.WriteLine("Press any key."); + Console.ReadKey(); break; case ConsoleKey.E: ExecuteTaskNow(taskManager); + Console.WriteLine("Press any key."); + Console.ReadKey(); break; case ConsoleKey.S: SearchTasks(taskManager); + Console.WriteLine("Press any key."); + Console.ReadKey(); break; case ConsoleKey.R: PrintTasks(taskManager.GetAllTasks().Where(eTask => eTask.state == TrangaTask.ExecutionState.Running).ToArray()); + Console.WriteLine("Press any key."); + Console.ReadKey(); break; } - Console.WriteLine("Press any key."); - Console.ReadKey(); selection = PrintMenu(taskManager, settings.downloadLocation); }