fix incorrect platform specifier

It should have been isLin, but we don't even need to check it -
the env var alone should suffice.
This commit is contained in:
Damien Elmes 2021-06-01 17:41:15 +10:00
parent b9f8cdb8bc
commit 479e19844b

View File

@ -461,11 +461,7 @@ def _run(argv: Optional[List[str]] = None, exec: bool = True) -> Optional[AnkiAp
profiler = cProfile.Profile()
profiler.enable()
if (
isWin
and getattr(sys, "frozen", False)
and os.getenv("QT_QPA_PLATFORM") == "wayland"
):
if getattr(sys, "frozen", False) and os.getenv("QT_QPA_PLATFORM") == "wayland":
# the packaged builds currently do not support wayland natively
os.environ["QT_QPA_PLATFORM"] = "xcb"