From 674c8fc37b58d40dfaed2288d5b82e3a8ad52adf Mon Sep 17 00:00:00 2001 From: glax Date: Sun, 21 May 2023 15:34:59 +0200 Subject: [PATCH] FIX Bug where menu wouldnt work --- Tranga-CLI/Tranga_Cli.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tranga-CLI/Tranga_Cli.cs b/Tranga-CLI/Tranga_Cli.cs index c1865fc..3f7e48e 100644 --- a/Tranga-CLI/Tranga_Cli.cs +++ b/Tranga-CLI/Tranga_Cli.cs @@ -97,6 +97,7 @@ public static class Tranga_Cli if (Console.KeyAvailable) { + selection = Console.ReadKey().Key; switch (selection) { case ConsoleKey.L: @@ -156,7 +157,6 @@ public static class Tranga_Cli PrintMenu(taskManager, taskManager.settings.downloadLocation, logger); } Thread.Sleep(200); - selection = Console.ReadKey().Key; } logger.WriteLine("Tranga_CLI", "Exiting.");