File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed
Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff 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 ()) {
You can’t perform that action at this time.
0 commit comments