From fe3bcac8c5326a007b06f0587af1d23a914e4e57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Boche=C5=84ski?= Date: Mon, 28 Apr 2025 13:23:59 +0200 Subject: [PATCH] Respect `disabledGrimWarning` config all notifications (#3896) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Piotr Bocheński --- src/utils/screengrabber.cpp | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/utils/screengrabber.cpp b/src/utils/screengrabber.cpp index 0d25f7b947..a9b7c59b2e 100644 --- a/src/utils/screengrabber.cpp +++ b/src/utils/screengrabber.cpp @@ -140,12 +140,15 @@ QPixmap ScreenGrabber::grabEntireDesktop(bool& ok) case DesktopInfo::HYPRLAND: case DesktopInfo::OTHER: { #ifndef USE_WAYLAND_GRIM - AbstractLogger::warning() << tr( - "If the USE_WAYLAND_GRIM option is not activated, the dbus " - "protocol will be used. It should be noted that using the " - "dbus protocol under wayland is not recommended. It is " - "recommended to recompile with the USE_WAYLAND_GRIM flag to " - "activate the grim-based general wayland screenshot adapter"); + if (!ConfigHandler().disabledGrimWarning()) { + AbstractLogger::warning() << tr( + "If the USE_WAYLAND_GRIM option is not activated, the " + "dbus protocol will be used. It should be noted that " + "using the dbus protocol under wayland is not " + "recommended. It is recommended to recompile with the " + "USE_WAYLAND_GRIM flag to activate the grim-based " + "general wayland screenshot adapter"); + } freeDesktopPortal(ok, res); #else if (!ConfigHandler().disabledGrimWarning()) {