Skip to content

Commit

Permalink
Fix order of startup: Load Manga first, the jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
C9Glax committed Oct 27, 2024
1 parent febce6b commit 585d7e3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Tranga/Jobs/JobBoss.cs
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,9 @@ private void LoadJobsList(HashSet<MangaConnector> 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)))
Expand All @@ -166,9 +169,6 @@ private void LoadJobsList(HashSet<MangaConnector> 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)
Expand Down

0 comments on commit 585d7e3

Please sign in to comment.