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

@@ -618,9 +618,7 @@ def main():
elif choice == "13":
from oauth_auth import OAuthHandler
oauth = OAuthHandler(translator)
user_data_dir = oauth._get_user_data_directory()
if user_data_dir:
oauth._select_profile(user_data_dir)
oauth._select_profile()
print_menu()
elif choice == "14":
import delete_cursor_google