Clarify ZIM Archive opening

This commit is contained in:
Balazs Perlaki-Horvath 2024-09-14 13:26:28 +02:00
parent 3b642d196d
commit 7ea5e270b5
2 changed files with 4 additions and 2 deletions

View File

@ -223,8 +223,10 @@
return nil;
}
[self insertIntoArchives:url with:zimFileID];
return [self findArchiveBy: zimFileID];
} else {
return found;
}
return [self findArchiveBy: zimFileID];
}
- (zim::Archive *_Nullable) findArchiveBy: (NSUUID *_Nonnull) zimFileID {

View File

@ -22,7 +22,7 @@
/// Shared ZimFileService instance
static let shared = ZimFileService.__sharedInstance()
/// IDs of currently opened zim files
/// IDs of current local zim files (not necessaraly with opened Archive)
private var fileIDs: [UUID] { __getReaderIdentifiers().compactMap({ $0 as? UUID }) }
// MARK: - Reader Management