Add hotkey to save add-on config (#1492)

This commit is contained in:
Abdo 2021-11-17 00:18:48 +03:00 committed by GitHub
parent 757cabf915
commit 65d10c2765
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1484,6 +1484,8 @@ class ConfigEditor(QDialog):
QDialogButtonBox.StandardButton.RestoreDefaults
)
qconnect(restore.clicked, self.onRestoreDefaults)
ok = self.form.buttonBox.button(QDialogButtonBox.StandardButton.Ok)
ok.setShortcut(QKeySequence("Ctrl+Return"))
self.setupFonts()
self.updateHelp()
self.updateText(self.conf)