Fix chaptermarkers.
Don't create one if Chapter does not have an ID
This commit is contained in:
parent
5b0624654b
commit
47479f7a0d
@ -121,6 +121,8 @@ public readonly struct Chapter : IComparable
|
||||
|
||||
public void CreateChapterMarker()
|
||||
{
|
||||
if (this.id is null)
|
||||
return;
|
||||
string path = Path.Join(TrangaSettings.downloadLocation, parentManga.folderName, $".{id}");
|
||||
File.WriteAllText(path, GetArchiveFilePath());
|
||||
File.SetAttributes(path, FileAttributes.Hidden);
|
||||
|
Loading…
Reference in New Issue
Block a user