From 60e007862bd048f8e6ac65aa78849943da751d91 Mon Sep 17 00:00:00 2001 From: Sander van Grieken Date: Thu, 13 Jul 2023 19:08:23 +0200 Subject: [PATCH] qml: defer updates, fixes listitems not updating --- electrum/gui/qml/components/controls/ChannelBar.qml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/electrum/gui/qml/components/controls/ChannelBar.qml b/electrum/gui/qml/components/controls/ChannelBar.qml index 606a25934..9dcf66c0c 100644 --- a/electrum/gui/qml/components/controls/ChannelBar.qml +++ b/electrum/gui/qml/components/controls/ChannelBar.qml @@ -18,6 +18,10 @@ Item { implicitWidth: 100 function update() { + Qt.callLater(do_update) + } + + function do_update() { var cap = capacity.satsInt * 1000 var twocap = cap * 2 l1.width = width * (cap - localCapacity.msatsInt) / twocap