From 7691f0f2967f721f3dee100956982ff625d7d945 Mon Sep 17 00:00:00 2001 From: kali Date: Mon, 4 Oct 2021 12:59:01 +0200 Subject: [ui] workarounds for font in osx --- gui/components/MainView.qml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'gui/components/MainView.qml') 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 "" + url + "" } -- cgit v1.2.3