mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-28 07:51:27 +00:00
kivy: initial network dialog
This commit is contained in:
parent
e5778316e8
commit
03ab2dfefe
1 changed files with 23 additions and 3 deletions
|
@ -1,10 +1,30 @@
|
||||||
Popup:
|
Popup:
|
||||||
id: network
|
id: nd
|
||||||
title: _('Network')
|
title: _('Network')
|
||||||
|
|
||||||
|
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:
|
BoxLayout:
|
||||||
|
orientation: 'vertical'
|
||||||
|
|
||||||
|
GridLayout:
|
||||||
|
cols: 2
|
||||||
|
Label:
|
||||||
|
text: _('Auto-connect')
|
||||||
|
CheckBox:
|
||||||
|
id: auto_connect
|
||||||
|
size_hint_y: None
|
||||||
|
Label:
|
||||||
|
text: _('Server')
|
||||||
|
Label:
|
||||||
|
id: host
|
||||||
|
|
||||||
Button:
|
Button:
|
||||||
size_hint_y: None
|
size_hint_y: None
|
||||||
height: '48dp'
|
height: '48dp'
|
||||||
text: 'close'
|
text: _('Close')
|
||||||
on_release: network.dismiss()
|
on_release: nd.dismiss()
|
||||||
|
|
Loading…
Add table
Reference in a new issue