mirror of
https://github.com/ankitects/anki.git
synced 2026-01-13 22:13:58 -05:00
Remove unnecessary lambda
This commit is contained in:
parent
59f801abc7
commit
f016df00cd
1 changed files with 1 additions and 1 deletions
|
|
@ -396,7 +396,7 @@ class Browser(QMainWindow):
|
|||
self.form.gridLayout.addWidget(switch, 0, 0)
|
||||
|
||||
def setupEditor(self) -> None:
|
||||
QShortcut(QKeySequence("Ctrl+Shift+P"), self, lambda: self.onTogglePreview())
|
||||
QShortcut(QKeySequence("Ctrl+Shift+P"), self, self.onTogglePreview)
|
||||
|
||||
def add_preview_button(editor: Editor) -> None:
|
||||
editor._links["preview"] = lambda _editor: self.onTogglePreview()
|
||||
|
|
|
|||
Loading…
Reference in a new issue