diff options
-rw-r--r-- | qtpass.pri | 2 | ||||
-rw-r--r-- | src/configdialog.cpp | 17 |
2 files changed, 18 insertions, 1 deletions
@@ -63,6 +63,8 @@ isEmpty(QMAKE_LUPDATE) { } } +winstore: DEFINES += "WINSTORE=1" + win32 { RC_FILE = ../windows.rc static { diff --git a/src/configdialog.cpp b/src/configdialog.cpp index 578f182d..db72fb08 100644 --- a/src/configdialog.cpp +++ b/src/configdialog.cpp @@ -565,11 +565,26 @@ void ConfigDialog::wizard() { if (!gpg.startsWith("wsl ") && !QFile(gpg).exists()) { criticalMessage( tr("GnuPG not found"), +#ifdef Q_OS_WIN +#ifdef WINSTORE + tr("Please install GnuPG on your system.<br>Install " + "<strong>Ubuntu</strong> from the Microsoft Store to get it.<br>" + "If you already did so, make sure you started it once and<br>" + "click \"Autodetect\" in the next dialog.") +#else + tr("Please install GnuPG on your system.<br>Install " + "<strong>Ubuntu</strong> from the Microsoft Store<br>or <a " + "href=\"https://www.gnupg.org/download/#sec-1-2\">download</a> it " + "from GnuPG.org") +#endif +#else tr("Please install GnuPG on your system.<br>Install " "<strong>gpg</strong> using your favorite package manager<br>or " "<a " "href=\"https://www.gnupg.org/download/#sec-1-2\">download</a> it " - "from GnuPG.org")); + "from GnuPG.org") +#endif + ); clean = true; } |