mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
Work around CI failure on Windows with PyQt 6.5.2
This commit is contained in:
parent
9ce98207be
commit
4691560522
1 changed files with 3 additions and 1 deletions
|
@ -1668,7 +1668,9 @@ title="{}" {}>{}</button>""".format(
|
||||||
|
|
||||||
def hideStatusTips(self) -> None:
|
def hideStatusTips(self) -> None:
|
||||||
for action in self.findChildren(QAction):
|
for action in self.findChildren(QAction):
|
||||||
cast(QAction, action).setStatusTip("")
|
# On Windows, this next line gives a 'redundant cast' error after moving to
|
||||||
|
# PyQt6.5.2.
|
||||||
|
cast(QAction, action).setStatusTip("") # type: ignore
|
||||||
|
|
||||||
def onMacMinimize(self) -> None:
|
def onMacMinimize(self) -> None:
|
||||||
self.setWindowState(self.windowState() | Qt.WindowState.WindowMinimized) # type: ignore
|
self.setWindowState(self.windowState() | Qt.WindowState.WindowMinimized) # type: ignore
|
||||||
|
|
Loading…
Reference in a new issue