From e424ada28214c4cdb5de8fa320c7e51ef0eb6170 Mon Sep 17 00:00:00 2001 From: emergent-reasons Date: Sun, 23 Jan 2022 19:38:26 +0900 Subject: [PATCH] pass explicit int to qt as py310 fix --- electroncash_plugins/fusion/qt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/electroncash_plugins/fusion/qt.py b/electroncash_plugins/fusion/qt.py index 9302c4a708f4..a76062d04dfd 100644 --- a/electroncash_plugins/fusion/qt.py +++ b/electroncash_plugins/fusion/qt.py @@ -1429,7 +1429,7 @@ def refresh(self): else: self.conf.selector = None return self.refresh() - sel_count = COIN_FRACTION_FUDGE_FACTOR / max(sel_fraction, 0.001) + sel_count = round(COIN_FRACTION_FUDGE_FACTOR / max(sel_fraction, 0.001)) self.amt_selector_size.setAmount(round(sel_size)) self.sb_selector_fraction.setValue(max(min(sel_fraction, 1.0), 0.001) * 100.0) self.sb_selector_count.setValue(sel_count)