mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 15:32:23 -04:00
limit audio to once per tab select, not once per dialog
This commit is contained in:
parent
b181f274b0
commit
3cd54d349a
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,6 @@ class CardLayout(QDialog):
|
|||
self.model = note.model()
|
||||
self.mw.checkpoint(_("Card Layout"))
|
||||
self.addMode = addMode
|
||||
self.playedAudio = {}
|
||||
if addMode:
|
||||
# save it to DB temporarily
|
||||
note.flush()
|
||||
|
@ -146,6 +145,7 @@ Please create a new card first."""))
|
|||
self.card = self.cards[idx]
|
||||
self.tab = self.forms[idx]
|
||||
self.tabs.setCurrentIndex(idx)
|
||||
self.playedAudio = {}
|
||||
self.readCard()
|
||||
self.renderPreview()
|
||||
|
||||
|
|
Loading…
Reference in a new issue