Browse Source
qt preferences: fix "allow_instant_swaps" checkbox
patch-4
SomberNight
3 years ago
No known key found for this signature in database
GPG Key ID: B33B5F232C6271E9
1 changed files with
1 additions and
1 deletions
-
electrum/gui/qt/settings_dialog.py
|
|
@ -174,7 +174,7 @@ class SettingsDialog(QDialog): |
|
|
|
]) |
|
|
|
instant_swaps_cb = QCheckBox(_("Allow instant swaps")) |
|
|
|
instant_swaps_cb.setToolTip(messages.to_rtf(help_instant_swaps)) |
|
|
|
instant_swaps_cb.setChecked(not bool(self.config.get('allow_instant_swaps', False))) |
|
|
|
instant_swaps_cb.setChecked(bool(self.config.get('allow_instant_swaps', False))) |
|
|
|
def on_instant_swaps_checked(allow_instant_swaps): |
|
|
|
self.config.set_key('allow_instant_swaps', bool(allow_instant_swaps)) |
|
|
|
instant_swaps_cb.stateChanged.connect(on_instant_swaps_checked) |
|
|
|