[nk] Better logic
This commit is contained in:
parent
48b89a8cc8
commit
f7b2a7fe81
|
@ -1313,11 +1313,12 @@ class AccountModificationWindow:
|
||||||
relogin_needed = False
|
relogin_needed = False
|
||||||
else: # we're connected to the account we want to apply changes
|
else: # we're connected to the account we want to apply changes
|
||||||
# check if relogin is needed
|
# check if relogin is needed
|
||||||
relogin_needed = self.options_changed_need_relogin(config,
|
if = self.options_changed_need_relogin(config,
|
||||||
('resource', 'proxy', 'usessl', 'keyname',
|
('resource', 'proxy', 'usessl', 'keyname',
|
||||||
'use_custom_host', 'custom_host'))
|
'use_custom_host', 'custom_host')):
|
||||||
|
relogin_needed = True
|
||||||
|
|
||||||
if config['use_custom_host'] and (self.option_changed(config,
|
elif config['use_custom_host'] and (self.option_changed(config,
|
||||||
'custom_host') or self.option_changed(config, 'custom_port')):
|
'custom_host') or self.option_changed(config, 'custom_port')):
|
||||||
relogin_needed = True
|
relogin_needed = True
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue