From 4cce2e04cb4455dba3b100961d4189bf91e310a7 Mon Sep 17 00:00:00 2001 From: glax Date: Sat, 2 Sep 2023 14:13:30 +0200 Subject: [PATCH] Renamed Job.Reset to ResetProgress --- Tranga/Jobs/Job.cs | 2 +- Tranga/Jobs/JobBoss.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Tranga/Jobs/Job.cs b/Tranga/Jobs/Job.cs index 2707fbd..f007850 100644 --- a/Tranga/Jobs/Job.cs +++ b/Tranga/Jobs/Job.cs @@ -56,7 +56,7 @@ public abstract class Job : GlobalBase return DateTime.MaxValue; } - public void Reset() + public void ResetProgress() { this.progressToken = new ProgressToken(this.progressToken.increments); } diff --git a/Tranga/Jobs/JobBoss.cs b/Tranga/Jobs/JobBoss.cs index 12eea32..fa8cafe 100644 --- a/Tranga/Jobs/JobBoss.cs +++ b/Tranga/Jobs/JobBoss.cs @@ -142,7 +142,7 @@ public class JobBoss : GlobalBase if (queueHead.progressToken.state is ProgressToken.State.Complete) { if(queueHead.recurring) - queueHead.Reset(); + queueHead.ResetProgress(); jobQueue.Dequeue(); }else if(queueHead.progressToken.state is ProgressToken.State.Standby) AddJobsToQueue(jobQueue.Peek().ExecuteReturnSubTasks());