diff --git a/source/app/ui/qml/DownloadProgress.qml b/source/app/ui/qml/DownloadProgress.qml index 75bb1b641..1c0fd600f 100644 --- a/source/app/ui/qml/DownloadProgress.qml +++ b/source/app/ui/qml/DownloadProgress.qml @@ -78,22 +78,13 @@ RowLayout Button { visible: root.waitingForOpen - implicitWidth: downloadProgressBar.implicitWidth - contentItem: Text + text: { - anchors.fill: parent - horizontalAlignment: Text.AlignHCenter - elide: Text.ElideRight - - text: - { - let filename = QmlUtils.baseFileNameForUrl(root.blockedUrl); - return qsTr("Open ") + (filename.length > 0 ? filename : qsTr("Download")); - } + let filename = QmlUtils.baseFileNameForUrl(root.blockedUrl); + return qsTr("Open ") + (filename.length > 0 ? filename : qsTr("Download")); } - onClicked: function(mouse) { root.openClicked(root.blockedUrl);