mirror of
https://github.com/kiwix/kiwix-apple.git
synced 2025-09-24 04:03:03 -04:00
Clarify ZIM Archive opening
This commit is contained in:
parent
3b642d196d
commit
7ea5e270b5
@ -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 {
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user