mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -04:00
work around 'which deck would you like' sticking around on Qt6/macOS
Not a problem on Qt5, and not really sure why this works 🤷
This commit is contained in:
parent
d515939340
commit
cee57f4cb7
1 changed files with 1 additions and 1 deletions
|
@ -89,8 +89,8 @@ def _deck_prompt_dialog(decks: list[DeckDict]) -> None:
|
||||||
box.addWidget(QLabel(tr.deck_config_which_deck()))
|
box.addWidget(QLabel(tr.deck_config_which_deck()))
|
||||||
for deck in decks:
|
for deck in decks:
|
||||||
button = QPushButton(deck["name"])
|
button = QPushButton(deck["name"])
|
||||||
qconnect(button.clicked, lambda _, deck=deck: display_options_for_deck(deck))
|
|
||||||
qconnect(button.clicked, diag.close)
|
qconnect(button.clicked, diag.close)
|
||||||
|
qconnect(button.clicked, lambda _, deck=deck: display_options_for_deck(deck))
|
||||||
box.addWidget(button)
|
box.addWidget(button)
|
||||||
button = QPushButton(tr.actions_cancel())
|
button = QPushButton(tr.actions_cancel())
|
||||||
qconnect(button.clicked, diag.close)
|
qconnect(button.clicked, diag.close)
|
||||||
|
|
Loading…
Reference in a new issue