Skip to content

Commit fe3bcac

Browse files
authored
Respect disabledGrimWarning config all notifications (flameshot-org#3896)
Signed-off-by: Piotr Bocheński <[email protected]>
1 parent 87e53ad commit fe3bcac

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

src/utils/screengrabber.cpp

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -140,12 +140,15 @@ QPixmap ScreenGrabber::grabEntireDesktop(bool& ok)
140140
case DesktopInfo::HYPRLAND:
141141
case DesktopInfo::OTHER: {
142142
#ifndef USE_WAYLAND_GRIM
143-
AbstractLogger::warning() << tr(
144-
"If the USE_WAYLAND_GRIM option is not activated, the dbus "
145-
"protocol will be used. It should be noted that using the "
146-
"dbus protocol under wayland is not recommended. It is "
147-
"recommended to recompile with the USE_WAYLAND_GRIM flag to "
148-
"activate the grim-based general wayland screenshot adapter");
143+
if (!ConfigHandler().disabledGrimWarning()) {
144+
AbstractLogger::warning() << tr(
145+
"If the USE_WAYLAND_GRIM option is not activated, the "
146+
"dbus protocol will be used. It should be noted that "
147+
"using the dbus protocol under wayland is not "
148+
"recommended. It is recommended to recompile with the "
149+
"USE_WAYLAND_GRIM flag to activate the grim-based "
150+
"general wayland screenshot adapter");
151+
}
149152
freeDesktopPortal(ok, res);
150153
#else
151154
if (!ConfigHandler().disabledGrimWarning()) {

0 commit comments

Comments
 (0)