Skip to content

Commit

Permalink
Fix UpdateJobFile with oldFile:
Browse files Browse the repository at this point in the history
oldFilePath was fullname, not relative
  • Loading branch information
C9Glax committed Dec 12, 2024
1 parent 1e6a65c commit 428d6e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tranga/Jobs/JobBoss.cs
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ private void LoadJobsList(HashSet<MangaConnector> connectors)
internal void UpdateJobFile(Job job, string? oldFile = null)
{
string newJobFilePath = Path.Join(TrangaSettings.jobsFolderPath, $"{job.id}.json");
string oldFilePath = Path.Join(TrangaSettings.jobsFolderPath, oldFile??$"{job.id}.json");
string oldFilePath = oldFile??Path.Join(TrangaSettings.jobsFolderPath, $"{job.id}.json");

//Delete old file
if (File.Exists(oldFilePath))
Expand Down

0 comments on commit 428d6e1

Please sign in to comment.