Add main action for open entry in browser

This commit is contained in:
Tobias Fella 2020-07-29 23:52:01 +02:00
parent 5fa40d89d9
commit baf894c380

View File

@ -42,5 +42,10 @@ Kirigami.ScrollablePage {
onLinkActivated: Qt.openUrlExternally(link)
onWidthChanged: text = entry.adjustedContent(width, font.pixelSize)
}
actions.main: Kirigami.Action {
text: i18n("Open in Browser")
icon.name: "globe"
onTriggered: Qt.openUrlExternally(entry.link)
}
}