[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:
Slava Monich 2015-10-21 13:38:28 +03:00
parent d82564509c
commit 01e9c614a0

View file

@ -233,13 +233,14 @@ SilicaFlickable {
Button {
//% "Cancel"
text: qsTrId("book-view-cancel-loading")
preferredWidth: Theme.buttonWidthMedium
width: Math.max(Theme.buttonWidthMedium, implicitWidth)
height: Theme.itemSizeLarge
anchors {
bottom: parent.bottom
horizontalCenter: parent.horizontalCenter
}
onClicked: root.closeBook()
enabled: _loading
opacity: enabled ? 1.0 : 0.0
Behavior on opacity { FadeAnimation { } }
}