mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-30 08:51:32 +00:00
Use icon for tx saving success message
This commit is contained in:
parent
a821a3504e
commit
540b230c8a
2 changed files with 6 additions and 2 deletions
|
@ -3151,7 +3151,7 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, PrintError):
|
||||||
self.wallet.save_transactions(write=True)
|
self.wallet.save_transactions(write=True)
|
||||||
# need to update at least: history_list, utxo_list, address_list
|
# need to update at least: history_list, utxo_list, address_list
|
||||||
self.need_update.set()
|
self.need_update.set()
|
||||||
self.show_message(_("Transaction saved successfully"))
|
self.msg_box(QPixmap(":icons/offline_tx.png"), None, _('Success'), _("Transaction saved successfully"))
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -202,7 +202,11 @@ class MessageBoxMixin(object):
|
||||||
def msg_box(self, icon, parent, title, text, buttons=QMessageBox.Ok,
|
def msg_box(self, icon, parent, title, text, buttons=QMessageBox.Ok,
|
||||||
defaultButton=QMessageBox.NoButton):
|
defaultButton=QMessageBox.NoButton):
|
||||||
parent = parent or self.top_level_window()
|
parent = parent or self.top_level_window()
|
||||||
d = QMessageBox(icon, title, str(text), buttons, parent)
|
if type(icon) is QPixmap:
|
||||||
|
d = QMessageBox(QMessageBox.Information, title, str(text), buttons, parent)
|
||||||
|
d.setIconPixmap(icon)
|
||||||
|
else:
|
||||||
|
d = QMessageBox(icon, title, str(text), buttons, parent)
|
||||||
d.setWindowModality(Qt.WindowModal)
|
d.setWindowModality(Qt.WindowModal)
|
||||||
d.setDefaultButton(defaultButton)
|
d.setDefaultButton(defaultButton)
|
||||||
return d.exec_()
|
return d.exec_()
|
||||||
|
|
Loading…
Add table
Reference in a new issue