summaryrefslogtreecommitdiff
path: root/gui/qml/DonateDialog.qml
diff options
context:
space:
mode:
authorkali kaneko (leap communications) <kali@leap.se>2021-11-24 20:35:09 +0100
committerkali kaneko (leap communications) <kali@leap.se>2021-11-24 20:35:23 +0100
commita234a8ef5bf8564221f615d0010a810e501905bb (patch)
tree100c2d12d0ac1a9c08ec9c3ce9fcc85bf55294f7 /gui/qml/DonateDialog.qml
parent4e92b1103dc0ea1eba07f2568afd1c250aee31d1 (diff)
[ui] remove old qml folder
Diffstat (limited to 'gui/qml/DonateDialog.qml')
-rw-r--r--gui/qml/DonateDialog.qml26
1 files changed, 0 insertions, 26 deletions
diff --git a/gui/qml/DonateDialog.qml b/gui/qml/DonateDialog.qml
deleted file mode 100644
index 1604e41..0000000
--- a/gui/qml/DonateDialog.qml
+++ /dev/null
@@ -1,26 +0,0 @@
-import QtQuick 2.0
-import QtQuick.Dialogs 1.2
-
-MessageDialog {
- standardButtons: StandardButton.No | StandardButton.Yes
- title: qsTr("Donate")
- icon: StandardIcon.Warning
- text: getText()
-
- function getText() {
- var _name = ctx ? ctx.appName : "vpn"
- //: donate dialog
- //: %1 -> application name
- var _txt = qsTr(
- "The %1 service is expensive to run. Because we don't want to store personal information about you, there are no accounts or billing for this service. But if you want the service to continue, donate at least $5 each month.\n\nDo you want to donate now?").arg(
- _name)
- return _txt
- }
-
- onAccepted: {
- if (backend) {
- Qt.openUrlExternally(Qt.resolvedUrl(ctx.donateURL))
- backend.donateAccepted()
- }
- }
-}