set_label
This commit is contained in:
@@ -1948,8 +1948,7 @@ class ElectrumWindow(QMainWindow):
|
||||
data = f.read()
|
||||
f.close()
|
||||
for key, value in json.loads(data).items():
|
||||
self.wallet.labels[key] = value
|
||||
self.wallet.save()
|
||||
self.wallet.set_label(key, value)
|
||||
QMessageBox.information(None, _("Labels imported"), _("Your labels were imported from")+" '%s'" % str(labelsFile))
|
||||
except (IOError, os.error), reason:
|
||||
QMessageBox.critical(None, _("Unable to import labels"), _("Electrum was unable to import your labels.")+"\n" + str(reason))
|
||||
|
||||
Reference in New Issue
Block a user