Only require ANKI_WAYLAND if frozen
Accidentally changed `and` to `or` while testing 7115caab13
.
This commit is contained in:
parent
0b03919f45
commit
30d55aa553
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user