From 30d55aa553bf41d92690e4b4e4c81d7ffd601bb7 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Wed, 20 Apr 2022 19:41:41 +1000 Subject: [PATCH] Only require ANKI_WAYLAND if frozen Accidentally changed `and` to `or` while testing 7115caab13. --- qt/aqt/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qt/aqt/__init__.py b/qt/aqt/__init__.py index 2f2577b5c..a6cdd9b20 100644 --- a/qt/aqt/__init__.py +++ b/qt/aqt/__init__.py @@ -495,7 +495,7 @@ def _run(argv: Optional[list[str]] = None, exec: bool = True) -> Optional[AnkiAp if ( getattr(sys, "frozen", False) - or (os.getenv("QT_QPA_PLATFORM") == "wayland" or os.getenv("WAYLAND_DISPLAY")) + and (os.getenv("QT_QPA_PLATFORM") == "wayland" or os.getenv("WAYLAND_DISPLAY")) and not os.getenv("ANKI_WAYLAND") ): # users need to opt in to wayland support, given the issues it has