File tree 1 file changed +12
-6
lines changed
1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -140,12 +140,18 @@ QPixmap ScreenGrabber::grabEntireDesktop(bool& ok)
140
140
case DesktopInfo::HYPRLAND:
141
141
case DesktopInfo::OTHER: {
142
142
#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
+ }
149
155
freeDesktopPortal (ok, res);
150
156
#else
151
157
if (!ConfigHandler ().disabledGrimWarning ()) {
You can’t perform that action at this time.
0 commit comments