mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-28 16:01:30 +00:00
kivy: fix update_contacts
This commit is contained in:
parent
897a5d34ed
commit
ac4adbb298
1 changed files with 7 additions and 1 deletions
|
@ -3,6 +3,7 @@ import datetime
|
||||||
|
|
||||||
from electrum import WalletStorage, Wallet
|
from electrum import WalletStorage, Wallet
|
||||||
from electrum.i18n import _, set_language
|
from electrum.i18n import _, set_language
|
||||||
|
from electrum.contacts import Contacts
|
||||||
|
|
||||||
from kivy.config import Config
|
from kivy.config import Config
|
||||||
Config.set('modules', 'screen', 'droid2')
|
Config.set('modules', 'screen', 'droid2')
|
||||||
|
@ -186,6 +187,9 @@ class ElectrumWindow(App):
|
||||||
self.electrum_config = config = kwargs.get('config', None)
|
self.electrum_config = config = kwargs.get('config', None)
|
||||||
self.gui_object = kwargs.get('gui_object', None)
|
self.gui_object = kwargs.get('gui_object', None)
|
||||||
|
|
||||||
|
self.config = self.gui_object.config
|
||||||
|
self.contacts = Contacts(self.config)
|
||||||
|
|
||||||
self.bind(url=self.set_url)
|
self.bind(url=self.set_url)
|
||||||
# were we sent a url?
|
# were we sent a url?
|
||||||
url = kwargs.get('url', None)
|
url = kwargs.get('url', None)
|
||||||
|
@ -743,7 +747,9 @@ class ElectrumWindow(App):
|
||||||
|
|
||||||
child = -1
|
child = -1
|
||||||
children = contact_list.children
|
children = contact_list.children
|
||||||
for address in self.wallet.addressbook:
|
|
||||||
|
for key in sorted(self.contacts.keys()):
|
||||||
|
_type, address = self.contacts[key]
|
||||||
label = self.wallet.labels.get(address, '')
|
label = self.wallet.labels.get(address, '')
|
||||||
child += 1
|
child += 1
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Add table
Reference in a new issue