mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -04:00
Merge pull request #1186 from RumovZ/ctx-actions
Update context action states after card op
This commit is contained in:
commit
a0eebb78ce
1 changed files with 1 additions and 0 deletions
|
@ -132,6 +132,7 @@ class Browser(QMainWindow):
|
||||||
|
|
||||||
if changes.browser_table and changes.card:
|
if changes.browser_table and changes.card:
|
||||||
self.card = self.table.get_current_card()
|
self.card = self.table.get_current_card()
|
||||||
|
self._update_context_actions()
|
||||||
|
|
||||||
def on_focus_change(self, new: Optional[QWidget], old: Optional[QWidget]) -> None:
|
def on_focus_change(self, new: Optional[QWidget], old: Optional[QWidget]) -> None:
|
||||||
if current_top_level_widget() == self:
|
if current_top_level_widget() == self:
|
||||||
|
|
Loading…
Reference in a new issue