mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
disable help button in title bar
This commit is contained in:
parent
cfd78367d4
commit
18a3ead1d2
1 changed files with 4 additions and 0 deletions
|
@ -327,6 +327,10 @@ def _run(argv=None, exec=True):
|
|||
if isMac:
|
||||
app.setAttribute(Qt.AA_DontShowIconsInMenus)
|
||||
|
||||
# disable help button in title bar on qt versions that support it
|
||||
if isWin and qtminor >= 10:
|
||||
QApplication.setAttribute(Qt.AA_DisableWindowContextHelpButton)
|
||||
|
||||
# proxy configured?
|
||||
from urllib.request import proxy_bypass, getproxies
|
||||
if 'http' in getproxies():
|
||||
|
|
Loading…
Reference in a new issue