diff options
author | kali <kali@leap.se> | 2021-10-04 12:59:01 +0200 |
---|---|---|
committer | kali kaneko (leap communications) <kali@leap.se> | 2021-10-06 18:38:22 +0200 |
commit | 2c13aa8076391d471ae3d434d0410b9c573c986a (patch) | |
tree | 756f24ffaae781c8c8619935a25b396718981c62 /gui/components/MainView.qml | |
parent | 0e356d7f3def84926992a93c61455d5232549b53 (diff) |
[ui] workarounds for font in osx
Diffstat (limited to 'gui/components/MainView.qml')
-rw-r--r-- | gui/components/MainView.qml | 8 |
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>" } |