Renamed SelectTask to SelectTaskType to avoid confusion

This commit is contained in:
glax 2023-05-20 15:58:02 +02:00
parent 337111d833
commit fcb1848a93

View File

@ -82,7 +82,7 @@ public static class Tranga_Cli
menu = 0; menu = 0;
break; break;
case 2: case 2:
TrangaTask.Task task = SelectTask(); TrangaTask.Task task = SelectTaskType();
Connector? connector = null; Connector? connector = null;
if(task != TrangaTask.Task.UpdateKomgaLibrary) if(task != TrangaTask.Task.UpdateKomgaLibrary)
@ -248,7 +248,7 @@ public static class Tranga_Cli
taskManager.RemoveTask(tasks[selectedTaskIndex].task, tasks[selectedTaskIndex].connectorName, tasks[selectedTaskIndex].publication); taskManager.RemoveTask(tasks[selectedTaskIndex].task, tasks[selectedTaskIndex].connectorName, tasks[selectedTaskIndex].publication);
} }
private static TrangaTask.Task SelectTask() private static TrangaTask.Task SelectTaskType()
{ {
Console.Clear(); Console.Clear();
string[] taskNames = Enum.GetNames<TrangaTask.Task>(); string[] taskNames = Enum.GetNames<TrangaTask.Task>();