mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 23:12:21 -04:00
Remove unnecessary lambda
This commit is contained in:
parent
fb56576e36
commit
22e735266e
1 changed files with 1 additions and 1 deletions
|
@ -396,7 +396,7 @@ class Browser(QMainWindow):
|
||||||
self.form.gridLayout.addWidget(switch, 0, 0)
|
self.form.gridLayout.addWidget(switch, 0, 0)
|
||||||
|
|
||||||
def setupEditor(self) -> None:
|
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:
|
def add_preview_button(editor: Editor) -> None:
|
||||||
editor._links["preview"] = lambda _editor: self.onTogglePreview()
|
editor._links["preview"] = lambda _editor: self.onTogglePreview()
|
||||||
|
|
Loading…
Reference in a new issue