From 7f3754fb64e9d022a2c694540fc5e467b80c9320 Mon Sep 17 00:00:00 2001 From: Glax Date: Mon, 16 Sep 2024 20:36:40 +0200 Subject: [PATCH] Fix startup issue/issue with existing chapters: ProgressToken would not complete --- Tranga/MangaConnectors/MangaConnector.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Tranga/MangaConnectors/MangaConnector.cs b/Tranga/MangaConnectors/MangaConnector.cs index b52112f..38619f9 100644 --- a/Tranga/MangaConnectors/MangaConnector.cs +++ b/Tranga/MangaConnectors/MangaConnector.cs @@ -229,7 +229,10 @@ public abstract class MangaConnector : GlobalBase Directory.CreateDirectory(directoryPath); if (File.Exists(saveArchiveFilePath)) //Don't download twice. + { + progressToken?.Complete(); return HttpStatusCode.Created; + } //Create a temporary folder to store images string tempFolder = Directory.CreateTempSubdirectory("trangatemp").FullName;