Skip to content

Commit

Permalink
Merge pull request l3kn#72 from c1-g/resuming-session
Browse files Browse the repository at this point in the history
org-fc-review: Ask to resume when there's already a session.
  • Loading branch information
l3kn authored Jan 6, 2022
2 parents 877b968 + 55b1f24 commit f64b533
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion org-fc-review.el
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ Valid contexts:
- a list of paths"
(interactive (list (org-fc-select-context)))
(if org-fc-review--session
(message "Flashcards are already being reviewed")
(when (yes-or-no-p "Flashcards are already being reviewed. Resume? ")
(org-fc-review-resume))
(let* ((index (org-fc-index context))
(cards (org-fc-index-filter-due index)))
(if org-fc-shuffle-positions
Expand Down

0 comments on commit f64b533

Please sign in to comment.