enable AltGr workaround by default

5.15.1 may still be another month away
This commit is contained in:
Damien Elmes 2020-07-24 10:32:50 +10:00
parent 80a2bfa642
commit c3266ea060

View file

@ -454,6 +454,9 @@ def _run(argv=None, exec=True):
if os.environ.get("ANKI_SOFTWAREOPENGL"):
QCoreApplication.setAttribute(Qt.AA_UseSoftwareOpenGL)
if isWin and qtminor == 15 and qtpoint == 0:
os.environ["QT_QPA_PLATFORM"]="windows:altgr"
# create the app
QCoreApplication.setApplicationName("Anki")
QGuiApplication.setDesktopFileName("anki.desktop")