Work around RuntimeError in _update_button_label() (#3224)
This commit is contained in:
parent
fbb73046e0
commit
e3c6b5bf3d
@ -79,7 +79,8 @@ class DeckChooser(QHBoxLayout):
|
||||
self.selected_deck_id = DEFAULT_DECK_ID
|
||||
|
||||
def _update_button_label(self) -> None:
|
||||
self.deck.setText(self.selected_deck_name().replace("&", "&&"))
|
||||
if not sip.isdeleted(self.deck):
|
||||
self.deck.setText(self.selected_deck_name().replace("&", "&&"))
|
||||
|
||||
def show(self) -> None:
|
||||
self._widget.show() # type: ignore
|
||||
|
Loading…
Reference in New Issue
Block a user