NEW_UI: Extend timeout & new login method

This commit is contained in:
Pakin 2025-06-20 16:43:41 +07:00
parent 038e13a00a
commit dbdc82102f
2 changed files with 1091 additions and 1082 deletions

View file

@ -191,6 +191,8 @@
DEBUGVAR Timeout
DEBUGVAR WhileRetryCounter
If alphaPasswordPromptWithKeyboard = "Enable" Then
Var Timeout = 0
Else
@ -265,7 +267,11 @@
If WhileRetryCounter < 10 Then
DEBUGVAR "WaitPasswordCheck"
__CMD "check-password-wait" "-" "-" "-"
If EnableBrewIPC = "true" Then
Else
__CMD "check-password-wait" "-" "-" "-"
EndIf
Var Timeout = 0
Var WaitPopup = "Enable"
Var FailPopup = "Invisible"
@ -957,11 +963,14 @@
<Volume> SoundVolume </Volume>
<EventClick>
; CallCMDFromXML
__CMD "check-password" PassPhrase "-" "-"
Var WaitPopup = "Enable"
If EnableBrewIPC = "true" Then
; Direct-call-to-brew
LoginBrew PassPhrase
Else
; CallCMDFromXML
__CMD "check-password" PassPhrase "-" "-"
Var WaitPopup = "Enable"
EndIf
</EventClick>
</Button>

View file

@ -37,7 +37,7 @@
Var Timeout = Timeout + 1
If Timeout > 60 Then
If Timeout > 900 Then
StatusLog "exit"
__CMD "cancel-pw-newui" "-" "-" "-"
@ -50,7 +50,7 @@
Var Text1_9 = Text1_9 + " "
Var Text1_9 = Text1_9 + SystemDate
Var BackToMainTime = 60 - Timeout
Var BackToMainTime = 900 - Timeout
DEBUGVAR tmpPassPhrase