mirror of
https://github.com/C9Glax/tranga-website.git
synced 2025-06-12 23:07:54 +02:00
Added DecrementProgress function to TrangaTask
This commit is contained in:
@ -24,6 +24,13 @@ public class DownloadNewChaptersTask : TrangaTask
|
||||
this.lastChange = DateTime.Now;
|
||||
return this.progress;
|
||||
}
|
||||
|
||||
public new float DecrementProgress(float amount)
|
||||
{
|
||||
this.progress -= amount / this.childTaskAmount;
|
||||
this.lastChange = DateTime.Now;
|
||||
return this.progress;
|
||||
}
|
||||
|
||||
protected override void ExecuteTask(TaskManager taskManager, Logger? logger)
|
||||
{
|
||||
|
Reference in New Issue
Block a user