tqt BlockingWaitingDialog: try harder to get label drawn (refresh bug) - electrum - Electrum Bitcoin wallet
HTML git clone https://git.parazyd.org/electrum
DIR Log
DIR Files
DIR Refs
DIR Submodules
---
DIR commit 4b5616ff148918d0afb1807b143853cee8718209
DIR parent 85f76523b6b29d49099648725c5fccc337ad28a5
HTML Author: SomberNight <somber.night@protonmail.com>
Date: Wed, 6 Jan 2021 02:29:59 +0100
qt BlockingWaitingDialog: try harder to get label drawn (refresh bug)
Diffstat:
M electrum/gui/qt/util.py | 5 +++++
1 file changed, 5 insertions(+), 0 deletions(-)
---
DIR diff --git a/electrum/gui/qt/util.py b/electrum/gui/qt/util.py
t@@ -332,9 +332,14 @@ class BlockingWaitingDialog(WindowModalDialog):
self.message_label = QLabel(message)
vbox = QVBoxLayout(self)
vbox.addWidget(self.message_label)
+ # show popup
self.show()
+ # refresh GUI; needed for popup to appear and for message_label to get drawn
QCoreApplication.processEvents()
+ QCoreApplication.processEvents()
+ # block and run given task
task()
+ # close popup
self.accept()