mirror of
https://github.com/ankitects/anki.git
synced 2025-11-25 22:17:12 -05:00
enable AltGr workaround by default
5.15.1 may still be another month away
This commit is contained in:
parent
80a2bfa642
commit
c3266ea060
1 changed files with 3 additions and 0 deletions
|
|
@ -454,6 +454,9 @@ 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:
|
||||||
|
os.environ["QT_QPA_PLATFORM"]="windows:altgr"
|
||||||
|
|
||||||
# create the app
|
# create the app
|
||||||
QCoreApplication.setApplicationName("Anki")
|
QCoreApplication.setApplicationName("Anki")
|
||||||
QGuiApplication.setDesktopFileName("anki.desktop")
|
QGuiApplication.setDesktopFileName("anki.desktop")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue