1
0

hw_wallet: de-dupe "message_dialog" code, make text selectable

This commit is contained in:
SomberNight
2022-11-09 21:09:02 +00:00
parent e4a880e435
commit e75110ec04
5 changed files with 15 additions and 40 deletions

View File

@@ -35,13 +35,7 @@ class Jade_Handler(QtHandlerBase):
setup_signal = pyqtSignal()
auth_signal = pyqtSignal(object, object)
MESSAGE_DIALOG_TITLE = _("Jade Status")
def __init__(self, win):
super(Jade_Handler, self).__init__(win, 'Jade')
def message_dialog(self, msg):
self.clear_dialog()
self.dialog = dialog = WindowModalDialog(self.top_level_window(), _("Jade Status"))
l = QLabel(msg)
vbox = QVBoxLayout(dialog)
vbox.addWidget(l)
dialog.show()