mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
fix another broken setWindowFlags
This commit is contained in:
parent
94064b8230
commit
f4c8462b97
1 changed files with 10 additions and 2 deletions
|
@ -11,7 +11,15 @@ from typing import Iterable, List, Optional, Sequence, TypeVar
|
||||||
import aqt
|
import aqt
|
||||||
from anki.rsbackend import TR, Interrupted, ProgressKind, pb
|
from anki.rsbackend import TR, Interrupted, ProgressKind, pb
|
||||||
from aqt.qt import *
|
from aqt.qt import *
|
||||||
from aqt.utils import askUser, restoreGeom, saveGeom, showText, tooltip, tr
|
from aqt.utils import (
|
||||||
|
askUser,
|
||||||
|
disable_help_button,
|
||||||
|
restoreGeom,
|
||||||
|
saveGeom,
|
||||||
|
showText,
|
||||||
|
tooltip,
|
||||||
|
tr,
|
||||||
|
)
|
||||||
|
|
||||||
T = TypeVar("T")
|
T = TypeVar("T")
|
||||||
|
|
||||||
|
@ -84,7 +92,7 @@ class MediaChecker:
|
||||||
# show report and offer to delete
|
# show report and offer to delete
|
||||||
diag = QDialog(self.mw)
|
diag = QDialog(self.mw)
|
||||||
diag.setWindowTitle(tr(TR.MEDIA_CHECK_WINDOW_TITLE))
|
diag.setWindowTitle(tr(TR.MEDIA_CHECK_WINDOW_TITLE))
|
||||||
setWindowFlags(self.windowFlags() & ~Qt.WindowContextHelpButtonHint) # type: ignore
|
disable_help_button(diag)
|
||||||
layout = QVBoxLayout(diag)
|
layout = QVBoxLayout(diag)
|
||||||
diag.setLayout(layout)
|
diag.setLayout(layout)
|
||||||
text = QTextEdit()
|
text = QTextEdit()
|
||||||
|
|
Loading…
Reference in a new issue