config: make adding thousand separators to amounts optional
This commit is contained in:
@@ -225,6 +225,17 @@ class SettingsDialog(WindowModalDialog):
|
||||
unit_combo.currentIndexChanged.connect(lambda x: on_unit(x, nz))
|
||||
gui_widgets.append((unit_label, unit_combo))
|
||||
|
||||
thousandsep_cb = QCheckBox(_("Add thousand separators to bitcoin amounts"))
|
||||
thousandsep_cb.setChecked(bool(self.config.get('amt_add_thousands_sep', False)))
|
||||
def on_set_thousandsep(v):
|
||||
checked = v == Qt.Checked
|
||||
if self.config.amt_add_thousands_sep != checked:
|
||||
self.config.amt_add_thousands_sep = checked
|
||||
self.config.set_key('amt_add_thousands_sep', checked)
|
||||
self.window.need_update.set()
|
||||
thousandsep_cb.stateChanged.connect(on_set_thousandsep)
|
||||
gui_widgets.append((thousandsep_cb, None))
|
||||
|
||||
qr_combo = QComboBox()
|
||||
qr_combo.addItem("Default", "default")
|
||||
msg = (_("For scanning QR codes.") + "\n"
|
||||
|
||||
Reference in New Issue
Block a user