[app] Fixed the "cancel load" button
Now it disappears after loading is done and becomes compatible with SFOS 1.1.7
This commit is contained in:
parent
d82564509c
commit
01e9c614a0
1 changed files with 2 additions and 1 deletions
|
@ -233,13 +233,14 @@ SilicaFlickable {
|
||||||
Button {
|
Button {
|
||||||
//% "Cancel"
|
//% "Cancel"
|
||||||
text: qsTrId("book-view-cancel-loading")
|
text: qsTrId("book-view-cancel-loading")
|
||||||
preferredWidth: Theme.buttonWidthMedium
|
width: Math.max(Theme.buttonWidthMedium, implicitWidth)
|
||||||
height: Theme.itemSizeLarge
|
height: Theme.itemSizeLarge
|
||||||
anchors {
|
anchors {
|
||||||
bottom: parent.bottom
|
bottom: parent.bottom
|
||||||
horizontalCenter: parent.horizontalCenter
|
horizontalCenter: parent.horizontalCenter
|
||||||
}
|
}
|
||||||
onClicked: root.closeBook()
|
onClicked: root.closeBook()
|
||||||
|
enabled: _loading
|
||||||
opacity: enabled ? 1.0 : 0.0
|
opacity: enabled ? 1.0 : 0.0
|
||||||
Behavior on opacity { FadeAnimation { } }
|
Behavior on opacity { FadeAnimation { } }
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue