Skip to content

Commit baf16ec

Browse files
committed
Respect disabledGrimWarning config all notifications
Signed-off-by: Piotr Bocheński <[email protected]>
1 parent 87e53ad commit baf16ec

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

src/utils/screengrabber.cpp

+12-6
Original file line numberDiff line numberDiff line change
@@ -140,12 +140,18 @@ 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 "
147+
"protocol will be used. It should be noted that using "
148+
"the "
149+
"dbus protocol under wayland is not recommended. It is "
150+
"recommended to recompile with the USE_WAYLAND_GRIM flag "
151+
"to "
152+
"activate the grim-based general wayland screenshot "
153+
"adapter");
154+
}
149155
freeDesktopPortal(ok, res);
150156
#else
151157
if (!ConfigHandler().disabledGrimWarning()) {

0 commit comments

Comments
 (0)