diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2021-05-13 08:52:02 +0200 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2021-05-13 08:53:56 +0200 |
commit | 22afa122c4697d25fd2f1eb4c7931bcf4ea43f31 (patch) | |
tree | 9025b1e8aa07821b65a92640289e8e6efaaeefef /resources | |
parent | Make palette global in Qml (diff) | |
download | nheko-22afa122c4697d25fd2f1eb4c7931bcf4ea43f31.tar.xz |
Move openLink to Nheko globals
Diffstat (limited to 'resources')
-rw-r--r-- | resources/qml/MatrixText.qml | 2 | ||||
-rw-r--r-- | resources/qml/RoomSettings.qml | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/resources/qml/MatrixText.qml b/resources/qml/MatrixText.qml index fa1cd98c..167899a5 100644 --- a/resources/qml/MatrixText.qml +++ b/resources/qml/MatrixText.qml @@ -14,7 +14,7 @@ TextEdit { selectByMouse: !Settings.mobileMode enabled: selectByMouse color: Nheko.colors.text - onLinkActivated: TimelineManager.openLink(link) + onLinkActivated: Nheko.openLink(link) ToolTip.visible: hoveredLink ToolTip.text: hoveredLink diff --git a/resources/qml/RoomSettings.qml b/resources/qml/RoomSettings.qml index ba577f33..14de0edf 100644 --- a/resources/qml/RoomSettings.qml +++ b/resources/qml/RoomSettings.qml @@ -128,7 +128,7 @@ ApplicationWindow { selectByMouse: true color: Nheko.colors.text horizontalAlignment: TextEdit.AlignHCenter - onLinkActivated: TimelineManager.openLink(link) + onLinkActivated: Nheko.openLink(link) CursorShape { anchors.fill: parent |