From 53fe80f5f1868103f450c6badc10b0c173fa3d72 Mon Sep 17 00:00:00 2001 From: "kali kaneko (leap communications)" Date: Mon, 29 Nov 2021 21:22:34 +0100 Subject: [ui] add link to uninstall --- gui/components/MotdBox.qml | 9 ++++++++- gui/components/Splash.qml | 5 +++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/gui/components/MotdBox.qml b/gui/components/MotdBox.qml index 3d833a3..18c928e 100644 --- a/gui/components/MotdBox.qml +++ b/gui/components/MotdBox.qml @@ -1,4 +1,4 @@ -import QtQuick 2.9 +import QtQuick 2.15 import QtQuick.Controls 2.2 import QtGraphicalEffects 1.0 import "../themes/themes.js" as Theme @@ -27,6 +27,10 @@ Item { horizontalAlignment: Text.AlignHCenter wrapMode: Text.Wrap font.pixelSize: Theme.fontSizeSmall - 2 + onLinkActivated: Qt.openUrlExternally(link) + HoverHandler { + cursorShape: Qt.PointingHandCursor + } } Label { @@ -40,6 +44,9 @@ Item { wrapMode: Label.Wrap font.pixelSize: Theme.fontSizeSmall onLinkActivated: Qt.openUrlExternally(link) + HoverHandler { + cursorShape: Qt.PointingHandCursor + } } } } diff --git a/gui/components/Splash.qml b/gui/components/Splash.qml index 8c3c310..dfdd622 100644 --- a/gui/components/Splash.qml +++ b/gui/components/Splash.qml @@ -97,7 +97,7 @@ Page { } function getUpgradeText() { - return qsTr("There is a newer version available. ") + qsTr("Make sure to uninstall the previous one before running the new installer.") + return qsTr("There is a newer version available. ") + qsTr("Make sure to uninstall the previous one before running the new installer.") } function getUpgradeLink() { @@ -114,8 +114,9 @@ Page { return true } let platform = Qt.platform.os - //DEBUG -- + //DEBUG ------------------------------------------------------------------- //if (platform == "windows" || platform == "osx" || platform == "linux" ) { + //DEBUG ------------------------------------------------------------------- if (platform == "windows" || platform == "osx") { return true } -- cgit v1.2.3