Browse Source

qml: update UI after import key/address, add icon to address/key import dialog

master
Sander van Grieken 3 years ago
parent
commit
e9d5e5737e
  1. 1
      electrum/gui/qml/components/ImportAddressesKeysDialog.qml
  2. 2
      electrum/gui/qml/qewallet.py

1
electrum/gui/qml/components/ImportAddressesKeysDialog.qml

@ -102,6 +102,7 @@ ElDialog {
FlatButton { FlatButton {
Layout.fillWidth: true Layout.fillWidth: true
icon.source: '../../icons/add.png'
text: qsTr('Import') text: qsTr('Import')
enabled: valid enabled: valid
onClicked: doAccept() onClicked: doAccept()

2
electrum/gui/qml/qewallet.py

@ -704,10 +704,12 @@ class QEWallet(AuthMixin, QObject, QtEventListener):
@pyqtSlot(str) @pyqtSlot(str)
def importAddresses(self, addresslist): def importAddresses(self, addresslist):
self.wallet.import_addresses(addresslist.split()) self.wallet.import_addresses(addresslist.split())
self.dataChanged.emit()
@pyqtSlot(str) @pyqtSlot(str)
def importPrivateKeys(self, keyslist): def importPrivateKeys(self, keyslist):
self.wallet.import_private_keys(keyslist.split(), self.password) self.wallet.import_private_keys(keyslist.split(), self.password)
self.dataChanged.emit()
@pyqtSlot(str) @pyqtSlot(str)
def importChannelBackup(self, backup_str): def importChannelBackup(self, backup_str):

Loading…
Cancel
Save