ui: don't show unpaired host choices
This commit is contained in:
parent
ff5d744183
commit
b1706fa9e2
|
@ -476,8 +476,9 @@ def _feature_change_host_callback(device):
|
||||||
hostNames[currentHost] = (True, socket.gethostname().partition('.')[0])
|
hostNames[currentHost] = (True, socket.gethostname().partition('.')[0])
|
||||||
choices = _NamedInts()
|
choices = _NamedInts()
|
||||||
for host in range(0, numHosts):
|
for host in range(0, numHosts):
|
||||||
_ignore, hostName = hostNames.get(host, (False, ''))
|
paired, hostName = hostNames.get(host, (True, ''))
|
||||||
choices[host] = str(host + 1) + ':' + hostName if hostName else str(host + 1)
|
if paired:
|
||||||
|
choices[host] = str(host + 1) + ':' + hostName if hostName else str(host + 1)
|
||||||
return _ChoicesV(choices, read_skip_byte_count=1) if choices else None
|
return _ChoicesV(choices, read_skip_byte_count=1) if choices else None
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue