Fix wrong cast
This commit is contained in:
parent
0383a7d686
commit
0522fa6215
@ -95,7 +95,7 @@ public class TaskManager
|
|||||||
case TrangaTask.Task.DownloadNewChapters:
|
case TrangaTask.Task.DownloadNewChapters:
|
||||||
if (!_allTasks.Any(taskQuery => taskQuery.task == TrangaTask.Task.DownloadNewChapters &&
|
if (!_allTasks.Any(taskQuery => taskQuery.task == TrangaTask.Task.DownloadNewChapters &&
|
||||||
taskQuery.state is TrangaTask.ExecutionState.Running &&
|
taskQuery.state is TrangaTask.ExecutionState.Running &&
|
||||||
((DownloadChapterTask)taskQuery).connectorName == ((DownloadNewChaptersTask)task).connectorName))
|
((DownloadNewChaptersTask)taskQuery).connectorName == ((DownloadNewChaptersTask)task).connectorName))
|
||||||
{
|
{
|
||||||
ExecuteTaskNow(task);
|
ExecuteTaskNow(task);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user