refactor: Simplify profile selection process in OAuthHandler

- Removed the user data directory retrieval in main.py for cleaner profile selection.
- Updated profile selection logic to include an exit option in oauth_auth.py.
- Enhanced user prompts in multiple languages to improve user experience during profile selection.
This commit is contained in:
Pin Studios
2025-04-05 19:10:21 +08:00
parent bce205b252
commit 74be8a0a77
5 changed files with 13 additions and 8 deletions

View File

@@ -28,7 +28,8 @@
"config": "Show Config",
"delete_google_account": "Delete Cursor Google Account",
"continue_prompt": "Continue? (y/N): ",
"operation_cancelled_by_user": "Operation cancelled by user"
"operation_cancelled_by_user": "Operation cancelled by user",
"exiting": "Exiting ……"
},
"languages": {
"en": "English",

View File

@@ -28,7 +28,8 @@
"config": "显示配置",
"delete_google_account": "删除 Cursor Google 账号",
"continue_prompt": "继续?(y/N): ",
"operation_cancelled_by_user": "操作被用户取消"
"operation_cancelled_by_user": "操作被用户取消",
"exiting": "退出中 ……"
},
"languages": {
"en": "英语",

View File

@@ -28,7 +28,8 @@
"config": "顯示配置",
"delete_google_account": "刪除 Cursor Google 帳號",
"continue_prompt": "繼續?(y/N): ",
"operation_cancelled_by_user": "操作被使用者取消"
"operation_cancelled_by_user": "操作被使用者取消",
"exiting": "退出中 ……"
},
"languages": {
"en": "英文",