1
0

(trivial) qt settings: fix a type hint

(no change in behaviour)
This commit is contained in:
SomberNight
2021-07-28 15:21:12 +02:00
parent e7ccf1584e
commit 419d71b4ef

View File

@@ -192,8 +192,8 @@ class SettingsDialog(WindowModalDialog):
msat_cb = QCheckBox(_("Show amounts with msat precision"))
msat_cb.setChecked(bool(self.config.get('amt_precision_post_satoshi', False)))
def on_msat_checked(b: bool):
prec = 3 if b else 0
def on_msat_checked(v):
prec = 3 if v == Qt.Checked else 0
if self.config.amt_precision_post_satoshi != prec:
self.config.amt_precision_post_satoshi = prec
self.config.set_key('amt_precision_post_satoshi', prec)