hide chapters for formats that doesn't support it

This commit is contained in:
Agel committed 2026-03-19 22:34:34 +01:00
1 parent 353c82f6d6
commit cf1721f916
4 files changed
+45 -3

No files matched your search

+5
View File
@@ -44,6 +44,11 @@ int ReadingModel::totalChapters() const
return m_totalChapters;
}
bool ReadingModel::hasChapters() const
{
return m_totalChapters > 1;
}
double ReadingModel::progress() const
{
if (m_totalChapters == 0)