mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-30 04:30:48 +00:00
Fix double "esc" bug in Auth dialog (#3493)
This commit is contained in:
parent
426b6905da
commit
4e84989d8f
2 changed files with 40 additions and 3 deletions
|
|
@ -66,6 +66,11 @@ export function AuthDialog({
|
|||
|
||||
useInput((_input, key) => {
|
||||
if (key.escape) {
|
||||
// Prevent exit if there is an error message.
|
||||
// This means they user is not authenticated yet.
|
||||
if (errorMessage) {
|
||||
return;
|
||||
}
|
||||
if (settings.merged.selectedAuthType === undefined) {
|
||||
// Prevent exiting if no auth method is set
|
||||
setErrorMessage(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue