on xenial help sign in
Show the loading indicator of the screenshot in video playback
c96e6c0Albert Astals
qml/Dash/Previews/PreviewVideoPlayback.qml+2−1
@@ -36,7 +36,6 @@ PreviewWidget {
36 right: parent.right
36 right: parent.right
37 }
37 }
38 scaleTo: "width"
38 scaleTo: "width"
39− visible: state === "ready"
40 source: {
39 source: {
41 var screenshot = widgetData["screenshot"];
40 var screenshot = widgetData["screenshot"];
42 if (screenshot) return screenshot;
41 if (screenshot) return screenshot;
@@ -61,9 +60,11 @@ PreviewWidget {
61 width: bigButton ? units.gu(8) : units.gu(4.5)
60 width: bigButton ? units.gu(8) : units.gu(4.5)
62 height: width
61 height: width
63 source: "../graphics/play_button%1%2.png".arg(previewImageMouseArea.pressed ? "_active" : "").arg(bigButton ? "_big" : "")
62 source: "../graphics/play_button%1%2.png".arg(previewImageMouseArea.pressed ? "_active" : "").arg(bigButton ? "_big" : "")
63+ visible: parent.state === "ready"
64 }
64 }
65
65
66 MouseArea {
66 MouseArea {
67+ enabled: parent.state === "ready"
67 id: previewImageMouseArea
68 id: previewImageMouseArea
68 anchors.fill: parent
69 anchors.fill: parent
69 onClicked: Qt.openUrlExternally(widgetData["source"])
70 onClicked: Qt.openUrlExternally(widgetData["source"])