mirror of
https://github.com/C9Glax/tranga-website.git
synced 2025-01-30 16:37:29 +01:00
Only list tasks that are not already running when asking to execute now.
This commit is contained in:
parent
294b819ff0
commit
636d17d287
@ -325,7 +325,7 @@ public static class Tranga_Cli
|
|||||||
private static void ExecuteTaskNow(TaskManager taskManager, Logger logger)
|
private static void ExecuteTaskNow(TaskManager taskManager, Logger logger)
|
||||||
{
|
{
|
||||||
logger.WriteLine("Tranga_CLI", "Menu: Executing Task");
|
logger.WriteLine("Tranga_CLI", "Menu: Executing Task");
|
||||||
TrangaTask[] tasks = taskManager.GetAllTasks();
|
TrangaTask[] tasks = taskManager.GetAllTasks().Where(nTask => nTask.state is not TrangaTask.ExecutionState.Running).ToArray();
|
||||||
|
|
||||||
TrangaTask? selectedTask = SelectTask(tasks, logger);
|
TrangaTask? selectedTask = SelectTask(tasks, logger);
|
||||||
if (selectedTask is null)
|
if (selectedTask is null)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user