From 585d7e338015dc76a014b9887ebda2117487f6ec Mon Sep 17 00:00:00 2001 From: Glax Date: Sun, 27 Oct 2024 03:42:50 +0100 Subject: [PATCH] Fix order of startup: Load Manga first, the jobs --- Tranga/Jobs/JobBoss.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Tranga/Jobs/JobBoss.cs b/Tranga/Jobs/JobBoss.cs index 025baf3..8c4542d 100644 --- a/Tranga/Jobs/JobBoss.cs +++ b/Tranga/Jobs/JobBoss.cs @@ -146,6 +146,9 @@ private void LoadJobsList(HashSet connectors) return; } Regex idRex = new (@"(.*)\.json"); + + //Load Manga-Files + ImportManga(); //Load json-job-files foreach (FileInfo file in new DirectoryInfo(TrangaSettings.jobsFolderPath).EnumerateFiles().Where(fileInfo => idRex.IsMatch(fileInfo.Name))) @@ -166,9 +169,6 @@ private void LoadJobsList(HashSet connectors) UpdateJobFile(job, file.Name); } } - - //Load Manga-Files - ImportManga(); //Connect jobs to parent-jobs and add Publications to cache foreach (Job job in this.jobs)