diff options
Diffstat (limited to 'src/ui/main_window/MainWindow.cpp')
-rw-r--r-- | src/ui/main_window/MainWindow.cpp | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/src/ui/main_window/MainWindow.cpp b/src/ui/main_window/MainWindow.cpp index 4b5c71f5..8c8fd55e 100644 --- a/src/ui/main_window/MainWindow.cpp +++ b/src/ui/main_window/MainWindow.cpp @@ -117,19 +117,20 @@ void MainWindow::Init() noexcept { &UISignalStation::SignalMainWindowOpenFile, this, &MainWindow::SlotOpenFile); -#if defined(__linux__) +#if !(defined(_WIN32) || defined(WIN32)) connect(this, &MainWindow::SignalLoaded, this, [=]() { QTimer::singleShot(3000, [self = QPointer<MainWindow>(this)]() { if (self != nullptr && DecidePinentry().isEmpty() && !IsFlatpakENV()) { QMessageBox::warning( - self, QObject::tr("Pinentry Not Found"), - QObject::tr( - "No suitable pinentry program was found on your system.\n\n" - "Please install 'pinentry-qt' or another compatible pinentry " - "(e.g., pinentry-gnome3, pinentry-gtk2).\n\n" - "Without it, GnuPG cannot prompt for passwords.\n\n" - "Once you have installed it, please restart GpgFrontend. " - "The configuration file will be updated automatically.")); + self, tr("GUI Pinentry Not Found"), + tr("No suitable *graphical* Pinentry program was found on your " + "system.\n\n" + "Please install a GUI-based Pinentry (e.g., 'pinentry-qt', " + "'pinentry-gnome3', or 'pinentry-mac' on macOS).\n\n" + "Without a GUI Pinentry, GnuPG cannot prompt you for " + "passwords or passphrases.\n\n" + "After installing it, please restart GpgFrontend. The " + "configuration file will be updated automatically.")); } }); }); |