From 502a43488d51c88be33d95be11ba8f160c2a3fd4 Mon Sep 17 00:00:00 2001 From: saturneric Date: Fri, 18 Apr 2025 19:11:40 +0200 Subject: feat: add more basic env checks at init --- src/ui/UserInterfaceUtils.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/ui/UserInterfaceUtils.cpp') diff --git a/src/ui/UserInterfaceUtils.cpp b/src/ui/UserInterfaceUtils.cpp index ed76824a..b5747b9f 100644 --- a/src/ui/UserInterfaceUtils.cpp +++ b/src/ui/UserInterfaceUtils.cpp @@ -167,6 +167,14 @@ void CommonUtils::RaiseMessageBox(QWidget *parent, GpgError err) { } } +void CommonUtils::RaiseMessageBoxNotSupported(QWidget *parent) { + QMessageBox::warning( + parent, QObject::tr("Operation Not Supported"), + QObject::tr( + "The current GnuPG version is too low and does not support this " + "operation. Please upgrade your GnuPG version to continue.")); +} + void CommonUtils::RaiseFailureMessageBox(QWidget *parent, GpgError err, const QString &msg) { GpgErrorDesc desc = DescribeGpgErrCode(err); -- cgit v1.2.3