Rename Library to History

This commit is contained in:
Agel committed 2026-04-11 22:22:14 +02:00
1 parent 2568f9089b
commit 598566c2a4
11 files changed
+102 -102

No files matched your search

+2 -2
View File
@@ -84,9 +84,9 @@ private slots:
{QStringLiteral("progress"), 0.5}});
items.append({{QStringLiteral("filePath"), QStringLiteral("/c/d.txt")},
{QStringLiteral("progress"), 0.0}});
state.saveArray(QStringLiteral("library"), items);
state.saveArray(QStringLiteral("history"), items);
const auto loaded = state.loadArray(QStringLiteral("library"));
const auto loaded = state.loadArray(QStringLiteral("history"));
QCOMPARE(loaded.size(), 2);
QCOMPARE(loaded[0].value(QStringLiteral("filePath")).toString(), QStringLiteral("/a/b.epub"));
QCOMPARE(loaded[0].value(QStringLiteral("progress")).toDouble(), 0.5);