Merge pull request #444 from mcarlton00/stop-overriding-my-server

Stop autodiscovered servers overriding manual input
This commit is contained in:
Odd Stråbø 2020-12-17 04:24:48 +01:00 committed by GitHub
commit 505a6dbe6d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 5 deletions

View file

@ -112,8 +112,7 @@ class Connect(object):
return state['Credentials']
elif (server_selection or state['State'] == CONNECTION_STATE['ServerSelection'] or state['State'] == CONNECTION_STATE['Unavailable'] and not settings('SyncInstallRunDone.bool')):
self.select_servers(state)
state['Credentials']['Servers'] = [self.select_servers(state)]
elif state['State'] == CONNECTION_STATE['ServerSignIn']:
if 'ExchangeToken' not in state['Servers'][0]:
@ -170,12 +169,12 @@ class Connect(object):
if dialog.is_server_selected():
LOG.debug("Server selected: %s", dialog.get_server())
return
return dialog.get_server()
elif dialog.is_manual_server():
LOG.debug("Adding manual server")
try:
self.manual_server()
return self.manual_server()
except RuntimeError:
pass
else:

View file

@ -75,7 +75,7 @@
<onup>noop</onup>
<onleft>close</onleft>
<onright>close</onright>
<ondown>205</ondown>
<ondown>206</ondown>
<itemlayout width="510" height="65">
<control type="group">
<left>20</left>