summaryrefslogtreecommitdiff
path: root/gui/components/MainView.qml
diff options
context:
space:
mode:
authorkali <kali@leap.se>2021-10-04 12:59:01 +0200
committerkali kaneko (leap communications) <kali@leap.se>2021-11-23 21:51:17 +0100
commit7691f0f2967f721f3dee100956982ff625d7d945 (patch)
tree446fb202fd11a2802fd67e7b2df3050995c9f618 /gui/components/MainView.qml
parentf3ed99f26f6f6a7d2b3d7da47409b28b2e042c05 (diff)
[ui] workarounds for font in osx
Diffstat (limited to 'gui/components/MainView.qml')
-rw-r--r--gui/components/MainView.qml8
1 files changed, 6 insertions, 2 deletions
diff --git a/gui/components/MainView.qml b/gui/components/MainView.qml
index 95bb212..c103565 100644
--- a/gui/components/MainView.qml
+++ b/gui/components/MainView.qml
@@ -130,7 +130,7 @@ Page {
}
font.pixelSize: 14
textFormat: Text.RichText
- text: getLink(ctx.donateURL)
+ text: getLink(ctx)
onLinkActivated: Qt.openUrlExternally(ctx.donateURL)
}
@@ -150,7 +150,11 @@ Page {
onYes: Qt.openUrlExternally(ctx.donateURL)
}
- function getLink(url) {
+ function getLink(ctx) {
+ if (!ctx) {
+ return ""
+ }
+ let url = ctx.donateURL
return "<style>a:link {color:'" + Theme.blue + "'; }</style><a href='#'>" + url + "</a>"
}