mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 15:02:21 -04:00
apply AltGr workaround on qt 5.14 as well
This commit is contained in:
parent
ca8265a695
commit
dbbdd16f0f
1 changed files with 5 additions and 1 deletions
|
@ -454,7 +454,11 @@ def _run(argv=None, exec=True):
|
||||||
if os.environ.get("ANKI_SOFTWAREOPENGL"):
|
if os.environ.get("ANKI_SOFTWAREOPENGL"):
|
||||||
QCoreApplication.setAttribute(Qt.AA_UseSoftwareOpenGL)
|
QCoreApplication.setAttribute(Qt.AA_UseSoftwareOpenGL)
|
||||||
|
|
||||||
if isWin and qtminor == 15 and qtpoint == 0:
|
if (
|
||||||
|
isWin
|
||||||
|
and (qtminor == 14 or (qtminor == 15 and qtpoint == 0))
|
||||||
|
and "QT_QPA_PLATFORM" not in os.environ
|
||||||
|
):
|
||||||
os.environ["QT_QPA_PLATFORM"] = "windows:altgr"
|
os.environ["QT_QPA_PLATFORM"] = "windows:altgr"
|
||||||
|
|
||||||
# create the app
|
# create the app
|
||||||
|
|
Loading…
Reference in a new issue