Skip to content
Snippets Groups Projects
Unverified Commit 53fe80f5 authored by Kali Kaneko's avatar Kali Kaneko
Browse files

[ui] add link to uninstall

parent 47818a8c
No related branches found
No related tags found
No related merge requests found
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
}
}
}
}
......@@ -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
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment