Add "Open externally" to media event context menu

This commit is contained in:
miruka 2020-07-21 01:06:31 -04:00
parent 3435dbc2f8
commit 48eac96976
3 changed files with 10 additions and 1 deletions

View File

@ -1,7 +1,6 @@
# TODO # TODO
- Image viewer: - Image viewer:
- room avatar change event: test open, open externally, copy url & path
- open externally in context menu in timeline thumbnail, also button - open externally in context menu in timeline thumbnail, also button
- hflickable: support kinetic scrolling disabler - hflickable: support kinetic scrolling disabler

View File

@ -170,6 +170,13 @@ HColumnLayout {
onTriggered: eventList.checkFromLastToHere(model.index) onTriggered: eventList.checkFromLastToHere(model.index)
} }
HMenuItem {
icon.name: "open-externally"
text: qsTr("Open externally")
visible: Boolean(model.media_url)
onTriggered: eventList.openMediaExternally(model)
}
HMenuItem { HMenuItem {
icon.name: "copy-local-path" icon.name: "copy-local-path"
text: qsTr("Copy local path") text: qsTr("Copy local path")

View File

@ -0,0 +1,3 @@
<svg height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
<path d="m6 17c2.269-9.881 11-11.667 11-11.667v-3.333l7 6.637-7 6.696v-3.333s-6.17-.171-11 5zm12 .145v2.855h-16v-12h6.598c.768-.787 1.561-1.449 2.339-2h-10.937v16h20v-6.769z"/>
</svg>

After

Width:  |  Height:  |  Size: 272 B