Browse Source

dialog for private servers

283
ThomasV 13 years ago
parent
commit
bbf82c54f4
  1. 10
      client/electrum4a.py

10
client/electrum4a.py

@ -717,11 +717,17 @@ def contacts_loop():
def server_dialog(plist):
droid.dialogCreateAlert("servers")
droid.dialogCreateAlert("Public servers")
droid.dialogSetItems( plist.keys() )
droid.dialogSetPositiveButtonText('Private server')
droid.dialogShow()
i = droid.dialogGetResponse().result.get('item')
response = droid.dialogGetResponse().result
droid.dialogDismiss()
if response.get('which') == 'positive':
return modal_input('Private server', None)
i = response.get('item')
if i is not None:
response = plist.keys()[i]
return response

Loading…
Cancel
Save