summaryrefslogtreecommitdiff
path: root/gui/components
diff options
context:
space:
mode:
authorkali kaneko (leap communications) <kali@leap.se>2021-11-29 21:22:34 +0100
committerkali kaneko (leap communications) <kali@leap.se>2021-11-29 21:29:06 +0100
commit53fe80f5f1868103f450c6badc10b0c173fa3d72 (patch)
tree2b0fd427ff1743ab081c1a66a91218cb1ed659dd /gui/components
parent47818a8c17504efbda8425c2fb878b66b40144ce (diff)
[ui] add link to uninstall
Diffstat (limited to 'gui/components')
-rw-r--r--gui/components/MotdBox.qml9
-rw-r--r--gui/components/Splash.qml5
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 <a href=\"https://0xacab.org/leap/bitmask-vpn/-/blob/main/docs/uninstall.md\">uninstall</a> 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
}