Skip to content

Commit

Permalink
De-customise DownloadProgress button, avoiding macOS warning
Browse files Browse the repository at this point in the history
  • Loading branch information
timangus committed Oct 20, 2023
1 parent 33eb951 commit 2d4963b
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions source/app/ui/qml/DownloadProgress.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 2d4963b

Please sign in to comment.