aboutsummaryrefslogtreecommitdiff
path: root/main.qml
diff options
context:
space:
mode:
authorAlexander Blair <snipa@jagtech.io>2020-12-10 17:58:42 -0800
committerAlexander Blair <snipa@jagtech.io>2020-12-10 17:58:42 -0800
commit897946af13fbcadc496ef7e47cc4a45f76e885fa (patch)
tree05d81fd0274d83993cba6e5d065dd940fb23e3c1 /main.qml
parente90626e05aeed0c8141855e4d3125addc143dd14 (diff)
parentae8394e5f87fecabf50e1607ba384af1d8218d29 (diff)
downloadmonzero-gui-897946af13fbcadc496ef7e47cc4a45f76e885fa.tar.gz
monzero-gui-897946af13fbcadc496ef7e47cc4a45f76e885fa.tar.xz
monzero-gui-897946af13fbcadc496ef7e47cc4a45f76e885fa.zip
Merge pull request #3260
ae8394e5 main: Linux - fix missing askDesktopShortcut setting (xiphon)
Diffstat (limited to 'main.qml')
-rw-r--r--main.qml17
1 files changed, 16 insertions, 1 deletions
diff --git a/main.qml b/main.qml
index 76b29a85..bfae4c34 100644
--- a/main.qml
+++ b/main.qml
@@ -1335,7 +1335,21 @@ ApplicationWindow {
if (persistentSettings.askDesktopShortcut && !persistentSettings.portable) {
persistentSettings.askDesktopShortcut = false;
- oshelper.createDesktopEntry();
+
+ if (isTails) {
+ oshelper.createDesktopEntry();
+ } else if (isLinux) {
+ confirmationDialog.title = qsTr("Desktop entry") + translationManager.emptyString;
+ confirmationDialog.text = qsTr("Would you like to register Monero GUI Desktop entry?") + translationManager.emptyString;
+ confirmationDialog.icon = StandardIcon.Question;
+ confirmationDialog.cancelText = qsTr("No") + translationManager.emptyString;
+ confirmationDialog.okText = qsTr("Yes") + translationManager.emptyString;
+ confirmationDialog.onAcceptedCallback = function() {
+ oshelper.createDesktopEntry();
+ };
+ confirmationDialog.onRejectedCallback = null;
+ confirmationDialog.open();
+ }
}
}
@@ -1347,6 +1361,7 @@ ApplicationWindow {
return "";
}
+ property bool askDesktopShortcut: isLinux
property string language: 'English (US)'
property string language_wallet: 'English'
property string locale: 'en_US'