From e4f33bcca9463f3a4f985acfa9a1669a84825c11 Mon Sep 17 00:00:00 2001 From: glax Date: Wed, 31 May 2023 21:52:50 +0200 Subject: [PATCH] Set ExecutionState to waiting after finished --- Tranga/TrangaTasks/DownloadNewChaptersTask.cs | 2 ++ Tranga/TrangaTasks/UpdateKomgaLibraryTask.cs | 1 + 2 files changed, 3 insertions(+) diff --git a/Tranga/TrangaTasks/DownloadNewChaptersTask.cs b/Tranga/TrangaTasks/DownloadNewChaptersTask.cs index d37d7dd..8dff7d3 100644 --- a/Tranga/TrangaTasks/DownloadNewChaptersTask.cs +++ b/Tranga/TrangaTasks/DownloadNewChaptersTask.cs @@ -24,6 +24,8 @@ public class DownloadNewChaptersTask : TrangaTask foreach(Chapter newChapter in newChapters) connector.DownloadChapter(pub, newChapter); + + this.state = ExecutionState.Waiting; } /// diff --git a/Tranga/TrangaTasks/UpdateKomgaLibraryTask.cs b/Tranga/TrangaTasks/UpdateKomgaLibraryTask.cs index 77c7d7f..c778553 100644 --- a/Tranga/TrangaTasks/UpdateKomgaLibraryTask.cs +++ b/Tranga/TrangaTasks/UpdateKomgaLibraryTask.cs @@ -16,5 +16,6 @@ public class UpdateKomgaLibraryTask : TrangaTask Komga.KomgaLibrary[] allLibraries = komga.GetLibraries(); foreach (Komga.KomgaLibrary lib in allLibraries) komga.UpdateLibrary(lib.id); + this.state = ExecutionState.Waiting; } } \ No newline at end of file