mirror of
https://github.com/ankitects/anki.git
synced 2025-09-23 16:26:40 -04:00
fix the preview shortcut references
This commit is contained in:
parent
6418993840
commit
8fcfdb57ab
1 changed files with 2 additions and 2 deletions
|
@ -76,12 +76,12 @@ class Previewer(QDialog):
|
||||||
)
|
)
|
||||||
self._replay.setAutoDefault(False)
|
self._replay.setAutoDefault(False)
|
||||||
self._replay.setShortcut(QKeySequence("R"))
|
self._replay.setShortcut(QKeySequence("R"))
|
||||||
self._replay.setToolTip(_("Shortcut key: %s" % "R"))
|
self._replay.setToolTip(tr(TR.ACTIONS_SHORTCUT_KEY, val="R"))
|
||||||
qconnect(self._replay.clicked, self._on_replay_audio)
|
qconnect(self._replay.clicked, self._on_replay_audio)
|
||||||
|
|
||||||
both_sides_button = QCheckBox(tr(TR.QT_MISC_BACK_SIDE_ONLY))
|
both_sides_button = QCheckBox(tr(TR.QT_MISC_BACK_SIDE_ONLY))
|
||||||
both_sides_button.setShortcut(QKeySequence("B"))
|
both_sides_button.setShortcut(QKeySequence("B"))
|
||||||
both_sides_button.setToolTip(_("Shortcut key: %s" % "B"))
|
both_sides_button.setToolTip(tr(TR.ACTIONS_SHORTCUT_KEY, val="B"))
|
||||||
self.bbox.addButton(both_sides_button, QDialogButtonBox.ActionRole)
|
self.bbox.addButton(both_sides_button, QDialogButtonBox.ActionRole)
|
||||||
self._show_both_sides = self.mw.col.conf.get("previewBothSides", False)
|
self._show_both_sides = self.mw.col.conf.get("previewBothSides", False)
|
||||||
both_sides_button.setChecked(self._show_both_sides)
|
both_sides_button.setChecked(self._show_both_sides)
|
||||||
|
|
Loading…
Reference in a new issue