Remove unnecessary lambda
This commit is contained in:
parent
fb56576e36
commit
22e735266e
@ -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 New Issue
Block a user