|
|
@ -97,6 +97,21 @@ class SettingsDialog(WindowModalDialog): |
|
|
|
self.window.refresh_tabs() |
|
|
|
nz.valueChanged.connect(on_nz) |
|
|
|
|
|
|
|
# invoices |
|
|
|
bolt11_fallback_cb = QCheckBox(_('Add on-chain fallback to lightning invoices')) |
|
|
|
bolt11_fallback_cb.setChecked(bool(self.config.get('bolt11_fallback', True))) |
|
|
|
bolt11_fallback_cb.setToolTip(_('Add fallback addresses to BOLT11 lightning invoices.')) |
|
|
|
def on_bolt11_fallback(x): |
|
|
|
self.config.set_key('bolt11_fallback', bool(x)) |
|
|
|
bolt11_fallback_cb.stateChanged.connect(on_bolt11_fallback) |
|
|
|
|
|
|
|
bip21_lightning_cb = QCheckBox(_('Add lightning invoice to bitcoin URIs')) |
|
|
|
bip21_lightning_cb.setChecked(bool(self.config.get('bip21_lightning', False))) |
|
|
|
bip21_lightning_cb.setToolTip(_('This may create larger qr codes.')) |
|
|
|
def on_bip21_lightning(x): |
|
|
|
self.config.set_key('bip21_lightning', bool(x)) |
|
|
|
bip21_lightning_cb.stateChanged.connect(on_bip21_lightning) |
|
|
|
|
|
|
|
use_rbf = bool(self.config.get('use_rbf', True)) |
|
|
|
use_rbf_cb = QCheckBox(_('Use Replace-By-Fee')) |
|
|
|
use_rbf_cb.setChecked(use_rbf) |
|
|
@ -483,6 +498,9 @@ class SettingsDialog(WindowModalDialog): |
|
|
|
gui_widgets.append((nz_label, nz)) |
|
|
|
gui_widgets.append((msat_cb, None)) |
|
|
|
gui_widgets.append((thousandsep_cb, None)) |
|
|
|
invoices_widgets = [] |
|
|
|
invoices_widgets.append((bolt11_fallback_cb, None)) |
|
|
|
invoices_widgets.append((bip21_lightning_cb, None)) |
|
|
|
tx_widgets = [] |
|
|
|
tx_widgets.append((usechange_cb, None)) |
|
|
|
tx_widgets.append((use_rbf_cb, None)) |
|
|
@ -513,6 +531,7 @@ class SettingsDialog(WindowModalDialog): |
|
|
|
|
|
|
|
tabs_info = [ |
|
|
|
(gui_widgets, _('Appearance')), |
|
|
|
(invoices_widgets, _('Invoices')), |
|
|
|
(tx_widgets, _('Transactions')), |
|
|
|
(lightning_widgets, _('Lightning')), |
|
|
|
(fiat_widgets, _('Fiat')), |
|
|
|