mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-23 17:47:31 +00:00
kivy: add server chooser to network dialog
This commit is contained in:
parent
59948d725c
commit
6bd191966e
2 changed files with 21 additions and 11 deletions
|
@ -5,9 +5,6 @@ Popup:
|
|||
on_open:
|
||||
host.text, nd.port, nd.protocol, nd.proxy, auto_connect.active = app.network.get_parameters()
|
||||
|
||||
on_dismiss:
|
||||
app.network.set_parameters(host.text, nd.port, nd.protocol, nd.proxy, auto_connect.active)
|
||||
|
||||
BoxLayout:
|
||||
|
||||
orientation: 'vertical'
|
||||
|
@ -21,14 +18,26 @@ Popup:
|
|||
size_hint_y: None
|
||||
Label:
|
||||
text: _('Server')
|
||||
Label:
|
||||
Spinner:
|
||||
id: host
|
||||
text: ''
|
||||
values: app.network.get_servers()
|
||||
|
||||
Button:
|
||||
size_hint: 0.5, None
|
||||
height: '48dp'
|
||||
text: _('Close')
|
||||
on_release: nd.dismiss()
|
||||
|
||||
BoxLayout:
|
||||
Button:
|
||||
size_hint: 0.5, None
|
||||
height: '48dp'
|
||||
text: _('Cancel')
|
||||
on_release:
|
||||
nd.dismiss()
|
||||
Button:
|
||||
size_hint: 0.5, None
|
||||
height: '48dp'
|
||||
text: _('OK')
|
||||
on_release:
|
||||
app.network.set_parameters(host.text, nd.port, nd.protocol, nd.proxy, auto_connect.active)
|
||||
nd.dismiss()
|
||||
|
||||
Widget:
|
||||
size_hint: 1, 1
|
||||
|
|
|
@ -9,10 +9,11 @@ Popup:
|
|||
GridLayout:
|
||||
cols: 2
|
||||
size_hint: 1, None
|
||||
height: '100dp'
|
||||
Label:
|
||||
text: _('Base unit')
|
||||
height: '48dp'
|
||||
size_hint: 1, None
|
||||
height: '48dp'
|
||||
Button:
|
||||
text: app.base_unit
|
||||
size_hint: 1, None
|
||||
|
@ -35,5 +36,5 @@ Popup:
|
|||
on_release: settings.dismiss()
|
||||
|
||||
Widget:
|
||||
size_hint: 1, 0.8
|
||||
size_hint: 1, 1
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue