mirror of
https://github.com/C9Glax/tranga-website.git
synced 2025-01-30 16:37:29 +01:00
Reduced update time for more responsiveness in CLI
Added statement "Exiting." when exiting for feedback to userinput.
This commit is contained in:
parent
b5bd5d6126
commit
942a552c8e
@ -97,7 +97,6 @@ public static class Tranga_Cli
|
|||||||
|
|
||||||
if (Console.KeyAvailable)
|
if (Console.KeyAvailable)
|
||||||
{
|
{
|
||||||
selection = Console.ReadKey().Key;
|
|
||||||
switch (selection)
|
switch (selection)
|
||||||
{
|
{
|
||||||
case ConsoleKey.L:
|
case ConsoleKey.L:
|
||||||
@ -156,10 +155,13 @@ public static class Tranga_Cli
|
|||||||
}
|
}
|
||||||
PrintMenu(taskManager, taskManager.settings.downloadLocation, logger);
|
PrintMenu(taskManager, taskManager.settings.downloadLocation, logger);
|
||||||
}
|
}
|
||||||
Thread.Sleep(1000);
|
Thread.Sleep(200);
|
||||||
|
selection = Console.ReadKey().Key;
|
||||||
}
|
}
|
||||||
|
|
||||||
logger.WriteLine("Tranga_CLI", "Exiting.");
|
logger.WriteLine("Tranga_CLI", "Exiting.");
|
||||||
|
Console.Clear();
|
||||||
|
Console.WriteLine("Exiting.");
|
||||||
if (taskManager.GetAllTasks().Any(task => task.state == TrangaTask.ExecutionState.Running))
|
if (taskManager.GetAllTasks().Any(task => task.state == TrangaTask.ExecutionState.Running))
|
||||||
{
|
{
|
||||||
Console.WriteLine("Force quit (Even with running tasks?) y/N");
|
Console.WriteLine("Force quit (Even with running tasks?) y/N");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user