fix qt5/windows-only attribute reference in aqt/__init__.py

This commit is contained in:
Damien Elmes 2021-10-24 22:09:43 +10:00
parent e2139f9460
commit c930732a29

View File

@ -544,9 +544,7 @@ def _run(argv: Optional[list[str]] = None, exec: bool = True) -> Optional[AnkiAp
# disable help button in title bar on qt versions that support it
if isWin and qtmajor == 5 and qtminor >= 10:
QApplication.setAttribute(
QApplication.Attribute.AA_DisableWindowContextHelpButton # type: ignore
)
QApplication.setAttribute(Qt.AA_DisableWindowContextHelpButton) # type: ignore
# proxy configured?
from urllib.request import getproxies, proxy_bypass