[app] Avoid QML runtime warnings
"Unable to assign undefined to bool"
This commit is contained in:
parent
a39ad381b0
commit
b220cbd60d
1 changed files with 2 additions and 2 deletions
|
@ -69,7 +69,7 @@ Item {
|
|||
property alias loadingBackgroundOpacity: loadingBackground.opacity
|
||||
property bool pageActive
|
||||
|
||||
readonly property bool viewActive: pageActive && Qt.application.active && book
|
||||
readonly property bool viewActive: pageActive && Qt.application.active && !!book
|
||||
readonly property bool haveVolumeUpAction: Settings.volumeUpAction !== BooksSettings.ActionNone
|
||||
readonly property bool haveVolumeDownAction: Settings.volumeDownAction !== BooksSettings.ActionNone
|
||||
readonly property bool haveKeyAction: haveVolumeUpAction || haveVolumeDownAction
|
||||
|
@ -380,7 +380,7 @@ Item {
|
|||
leftMargin: bookModel.leftMargin
|
||||
rightMargin: bookModel.rightMargin
|
||||
opacity: _currentState.tools ? 1 : 0
|
||||
visible: opacity > 0 && book && bookModel.pageCount && !loading
|
||||
visible: opacity > 0 && !!book && bookModel.pageCount && !loading
|
||||
|
||||
onIncreaseFontSize: bookModel.increaseFontSize()
|
||||
onDecreaseFontSize: bookModel.decreaseFontSize()
|
||||
|
|
Loading…
Reference in a new issue