Review comments

This commit is contained in:
jpirnay
2026-05-23 20:21:11 +02:00
parent 0dc3fc623c
commit 7f61b99be2
8 changed files with 26 additions and 11 deletions
+2 -1
View File
@@ -25,10 +25,11 @@ namespace {
// <nav epub:type="page-list"> share the same writer.
template <typename Entry>
void writePageListBin(const std::string& cachePath, const std::vector<Entry>& pageList) {
const auto pageListPath = cachePath + "/pagelist.bin";
if (pageList.empty()) {
Storage.remove(pageListPath.c_str());
return;
}
const auto pageListPath = cachePath + "/pagelist.bin";
FsFile pageListFile;
if (!Storage.openFileForWrite("EBP", pageListPath, pageListFile)) {
LOG_ERR("EBP", "Could not write pagelist.bin");