Remove unnecessary lambda

This commit is contained in:
Henrik Giesel 2021-07-17 04:17:28 +02:00
parent fb56576e36
commit 22e735266e

View File

@ -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()