Skip to content

Commit

Permalink
Fix Deck browser > Overview error if card answered w/o feedback (#170)
Browse files Browse the repository at this point in the history
* Fix Deck browser > Overview error if card answered w/o feedback

* Update github workflow setting
  • Loading branch information
Yutsuten authored Nov 5, 2023
1 parent 6a06229 commit bacc3d4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/python-linter.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Python Linter
on:
push:
branches: ["master"]
branches: ["main"]
pull_request:
branches: ["master"]
branches: ["main"]
jobs:
linter:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion src/lifedrain.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ def screen_change(self, state: MainWindowState) -> None:
if not config['enable']:
return

self.deck_manager.update(state)
if state != 'review':
self._toggle_drain(enable=False)
self.status['prev_card'] = None
Expand All @@ -137,7 +138,6 @@ def screen_change(self, state: MainWindowState) -> None:
self.status['card_type'],
)
self.status['reviewed'] = False
self.deck_manager.update(state)

@must_be_enabled
def opened_window(self, config: dict[str, Any]) -> None:
Expand Down

0 comments on commit bacc3d4

Please sign in to comment.