Moved notification to DownloadChapterTask, sends when parentTask exists.
This commit is contained in:
parent
6cdccdf66b
commit
edc24fff5b
@ -30,6 +30,9 @@ public class DownloadChapterTask : TrangaTask
|
|||||||
if(this.parentTask is not null)
|
if(this.parentTask is not null)
|
||||||
this.parentTask.state = ExecutionState.Waiting;
|
this.parentTask.state = ExecutionState.Waiting;
|
||||||
taskManager.DeleteTask(this);
|
taskManager.DeleteTask(this);
|
||||||
|
if(parentTask is not null)
|
||||||
|
foreach(NotificationManager nm in taskManager.settings.notificationManagers)
|
||||||
|
nm.SendNotification("New Chapter downloaded", $"{this.publication.sortName} {this.chapter.chapterNumber} {this.chapter.name}");
|
||||||
}
|
}
|
||||||
|
|
||||||
public override string ToString()
|
public override string ToString()
|
||||||
|
Loading…
Reference in New Issue
Block a user