Browse Source
qt BlockingWaitingDialog: try harder to get label drawn (refresh bug)
patch-4
SomberNight
4 years ago
No known key found for this signature in database
GPG Key ID: B33B5F232C6271E9
1 changed files with
5 additions and
0 deletions
-
electrum/gui/qt/util.py
|
|
@ -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() |
|
|
|
|
|
|
|
|
|
|
|