core(stdui/profile manager): fixed authentication cancellation
This commit is contained in:
parent
2618d48e7b
commit
58795c675c
1 changed files with 2 additions and 0 deletions
|
|
@ -67,6 +67,8 @@ class ProfileManager(object):
|
|||
return {'xmlui': dialog.toXml(), 'validated': C.BOOL_FALSE}
|
||||
|
||||
def _authenticateProfile(self, data, profile):
|
||||
if C.bool(data.get('cancelled', 'false')):
|
||||
return {}
|
||||
if self.host.memory.isSessionStarted(profile):
|
||||
return {'validated': C.BOOL_TRUE}
|
||||
try:
|
||||
|
|
|
|||
Loading…
Reference in a new issue