aboutsummaryrefslogtreecommitdiff
path: root/main.qml
diff options
context:
space:
mode:
authorxiphon <xiphon@protonmail.com>2020-12-07 20:06:55 +0000
committerxiphon <xiphon@protonmail.com>2020-12-08 01:02:00 +0000
commitae8394e5f87fecabf50e1607ba384af1d8218d29 (patch)
tree42d660496c2ac2df35dd18e319a7c13e6a224d67 /main.qml
parentea1fee2f5f842a293458a66638c15ff79e1d101d (diff)
downloadmonzero-gui-ae8394e5f87fecabf50e1607ba384af1d8218d29.tar.gz
monzero-gui-ae8394e5f87fecabf50e1607ba384af1d8218d29.tar.xz
monzero-gui-ae8394e5f87fecabf50e1607ba384af1d8218d29.zip
main: Linux - fix missing askDesktopShortcut setting
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'