mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-17 18:11:54 +00:00
fix(keycard): login using keycard with multiple profiles stuck
Fixes #15033
This commit is contained in:
parent
00fd183a33
commit
53ba432a89
@ -163,8 +163,6 @@ QtObject:
|
||||
debug "keycardStartFlow", kcServiceCurrFlow=($self.currentFlow), payload=payload, response=response
|
||||
|
||||
proc resumeFlow(self: Service, payload: JsonNode) =
|
||||
if self.busy:
|
||||
return
|
||||
self.busy = true
|
||||
self.updateLocalPayloadForCurrentFlow(payload)
|
||||
let response = keycard_go.keycardResumeFlow($payload)
|
||||
@ -172,11 +170,10 @@ QtObject:
|
||||
debug "keycardResumeFlow", kcServiceCurrFlow=($self.currentFlow), payload=payload, response=response
|
||||
|
||||
proc cancelCurrentFlow*(self: Service) =
|
||||
if self.busy:
|
||||
return
|
||||
let response = keycard_go.keycardCancelFlow()
|
||||
sleep(200)
|
||||
self.currentFlow = KCSFlowType.NoFlow
|
||||
self.busy = false
|
||||
if self.doLogging:
|
||||
debug "keycardCancelFlow", kcServiceCurrFlow=($self.currentFlow), response=response
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user