diff options
author | kali kaneko (leap communications) <kali@leap.se> | 2020-10-09 21:58:15 +0200 |
---|---|---|
committer | Ruben Pollan <meskio@sindominio.net> | 2020-10-13 19:08:55 +0200 |
commit | f8c05f3dee29c7ab1eb3eba82c917fe18333fc41 (patch) | |
tree | 4dc17ad736d670652c8f6f9437afd9a71f4cdada /gui/qml | |
parent | 73d0c7a96df2212d5a3ee6289fc286f3e6459028 (diff) |
[pkg] add vendor icon to app
Diffstat (limited to 'gui/qml')
-rw-r--r-- | gui/qml/AboutDialog.qml | 1 | ||||
-rw-r--r-- | gui/qml/main.qml | 10 |
2 files changed, 8 insertions, 3 deletions
diff --git a/gui/qml/AboutDialog.qml b/gui/qml/AboutDialog.qml index a101ea3..bd3d77e 100644 --- a/gui/qml/AboutDialog.qml +++ b/gui/qml/AboutDialog.qml @@ -5,6 +5,7 @@ MessageDialog { title: qsTr("About") text: getText() informativeText: getVersion() + icon: StandardIcon.Information function getText() { var _name = ctx ? ctx.appName : "vpn" diff --git a/gui/qml/main.qml b/gui/qml/main.qml index ce72fff..dcffcde 100644 --- a/gui/qml/main.qml +++ b/gui/qml/main.qml @@ -42,6 +42,9 @@ ApplicationWindow { showInitFailure() } } + if (ctx.donateURL) { + donateItem.visible = true + } } } @@ -98,8 +101,8 @@ ApplicationWindow { allowEmptyPass = shouldAllowEmptyPass() app.visible = true; - show(); - hide(); + //show(); + //hide(); } function toHuman(st) { @@ -251,8 +254,9 @@ ApplicationWindow { } MenuItem { + id: donateItem text: qsTr("Donate...") - visible: ctx && ctx.donateURL + visible: ctx ? ctx.donateURL : false onTriggered: { donate.visible = true } } |