electrum-bitcoinprivate/gui/kivy/uix/ui_screens/network.kv

54 lines
2.4 KiB
Plaintext
Raw Normal View History

Popup:
2015-10-07 01:13:40 -07:00
id: nd
title: _('Network')
BoxLayout:
2015-10-07 01:13:40 -07:00
orientation: 'vertical'
ScrollView:
GridLayout:
id: scrollviewlayout
cols:1
size_hint: 1, None
height: self.minimum_height
padding: '10dp'
SettingsItem:
value: _("{} connections.").format(app.num_nodes) if app.num_nodes else _("Not connected")
title: _("Status") + ': ' + self.value
2019-12-24 03:21:35 -08:00
description: _("Connections with Electrum-bitcoinprivate servers")
2017-07-12 08:23:21 -07:00
action: lambda x: None
CardSeparator
SettingsItem:
title: _("Server") + ': ' + app.server_host
2017-07-12 08:23:21 -07:00
description: _("Server used to query your history.")
action: lambda x: app.popup_dialog('server')
2017-07-12 08:23:21 -07:00
CardSeparator
SettingsItem:
proxy: app.proxy_config.get('mode')
host: app.proxy_config.get('host')
port: app.proxy_config.get('port')
title: _("Proxy") + ': ' + ((self.host +':' + self.port) if self.proxy else _('None'))
description: _('Proxy configuration')
action: lambda x: app.popup_dialog('proxy')
CardSeparator
SettingsItem:
title: _("Auto-connect") + ': ' + ('ON' if app.auto_connect else 'OFF')
2017-07-12 08:23:21 -07:00
description: _("Select your server automatically")
action: app.toggle_auto_connect
CardSeparator
SettingsItem:
value: "%d blocks" % app.num_blocks
title: _("Blockchain") + ': ' + self.value
2017-07-12 08:23:21 -07:00
description: _('Verified block headers')
action: lambda x: x
CardSeparator
SettingsItem:
title: _('Fork detected at block {}').format(app.blockchain_checkpoint) if app.num_chains>1 else _('No fork detected')
2017-07-12 08:23:21 -07:00
fork_description: (_('You are following branch') if app.auto_connect else _("Your server is on branch")) + ' ' + app.blockchain_name
2017-07-19 00:46:48 -07:00
description: self.fork_description if app.num_chains>1 else _('Connected nodes are on the same chain')
action: app.choose_blockchain_dialog
2017-07-19 00:46:48 -07:00
disabled: app.num_chains == 1