Only list tasks that are enqueued when showing remove task menu
This commit is contained in:
parent
ca2d13226f
commit
2910473fec
@ -184,7 +184,7 @@ public static class Tranga_Cli
|
||||
Console.Clear();
|
||||
logger.WriteLine("Tranga_CLI", "Menu: Remove Task from queue");
|
||||
|
||||
TrangaTask[] tasks = taskManager.GetAllTasks();
|
||||
TrangaTask[] tasks = taskManager.GetAllTasks().Where(rTask => rTask.state is TrangaTask.ExecutionState.Enqueued).ToArray();
|
||||
if (tasks.Length < 1)
|
||||
{
|
||||
Console.Clear();
|
||||
|
Loading…
Reference in New Issue
Block a user