2
0

Merge branch 'refs/heads/cuttingedge-merge-ServerV2' into cuttingedge

This commit is contained in:
Glax 2024-11-02 17:44:30 +01:00
commit 38bc1e4d53

View File

@ -121,6 +121,8 @@ public readonly struct Chapter : IComparable
public void CreateChapterMarker() public void CreateChapterMarker()
{ {
if (this.id is null)
return;
string path = Path.Join(TrangaSettings.downloadLocation, parentManga.folderName, $".{id}"); string path = Path.Join(TrangaSettings.downloadLocation, parentManga.folderName, $".{id}");
File.WriteAllText(path, GetArchiveFilePath()); File.WriteAllText(path, GetArchiveFilePath());
File.SetAttributes(path, FileAttributes.Hidden); File.SetAttributes(path, FileAttributes.Hidden);