mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 01:06:35 -04:00
fix qt5/windows-only attribute reference in aqt/__init__.py
This commit is contained in:
parent
e2139f9460
commit
c930732a29
1 changed files with 1 additions and 3 deletions
|
@ -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
|
# disable help button in title bar on qt versions that support it
|
||||||
if isWin and qtmajor == 5 and qtminor >= 10:
|
if isWin and qtmajor == 5 and qtminor >= 10:
|
||||||
QApplication.setAttribute(
|
QApplication.setAttribute(Qt.AA_DisableWindowContextHelpButton) # type: ignore
|
||||||
QApplication.Attribute.AA_DisableWindowContextHelpButton # type: ignore
|
|
||||||
)
|
|
||||||
|
|
||||||
# proxy configured?
|
# proxy configured?
|
||||||
from urllib.request import getproxies, proxy_bypass
|
from urllib.request import getproxies, proxy_bypass
|
||||||
|
|
Loading…
Reference in a new issue