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
@@ -15,7 +15,7 @@ Rectangle {
|
||||
Text {
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
x: parent.width * 0.5
|
||||
text: bookController.hasBook
|
||||
text: bookController.hasBook && readingModel.hasChapters
|
||||
? "Chapter " + (readingModel.currentChapter + 1) + " / " + readingModel.totalChapters
|
||||
: ""
|
||||
font.pixelSize: 11
|
||||
@@ -27,8 +27,8 @@ Rectangle {
|
||||
anchors.right: parent.right
|
||||
anchors.rightMargin: 16
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
visible: bookController.hasBook
|
||||
text: bookController.hasBook
|
||||
visible: bookController.hasBook && readingModel.hasChapters
|
||||
text: bookController.hasBook && readingModel.hasChapters
|
||||
? (readingModel.currentChapter + 1) + "/" + readingModel.totalChapters
|
||||
: ""
|
||||
font.pixelSize: 11
|
||||
|
||||
Reference in new issue
Block a user