hide chapters for formats that doesn't support it
This commit is contained in:
1 parent
353c82f6d6
commit
cf1721f916
4 files changed
+45
-3
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user