fix: suppress harmless Qt portal registration warning on Linux

This commit is contained in:
Deniz Şafak
2026-07-23 01:42:41 +03:00
parent 473631b84e
commit a0fdabd81f
+2
View File
@@ -120,6 +120,8 @@ def qt_message_handler(mode, context, message):
return # Suppress this specific message return # Suppress this specific message
if "setGrabPopup called with a parent, QtWaylandClient" in message: if "setGrabPopup called with a parent, QtWaylandClient" in message:
return return
if "Failed to register with host portal" in message:
return
if mode == QtMsgType.QtWarningMsg: if mode == QtMsgType.QtWarningMsg:
print(f"Qt Warning: {message}") print(f"Qt Warning: {message}")