forked from mirrors/cursor-free-vip
fix: Improve Cursor Version Check and Configuration Handling
- Enhance version checking in `reset_machine_manual.py` with more robust error handling - Add detailed error messages and logging for version detection - Update configuration paths in `new_signup.py` to include Cursor application path - Add configuration initialization in `main.py` - Update localization files with new error and version-related messages
This commit is contained in:
8
main.py
8
main.py
@@ -285,6 +285,14 @@ def check_latest_version():
|
||||
|
||||
def main():
|
||||
print_logo()
|
||||
|
||||
# 初始化配置
|
||||
from new_signup import setup_config
|
||||
config = setup_config(translator)
|
||||
if not config:
|
||||
print(f"{Fore.RED}{EMOJI['ERROR']} {translator.get('menu.config_init_failed')}{Style.RESET_ALL}")
|
||||
return
|
||||
|
||||
check_latest_version() # Add version check before showing menu
|
||||
print_menu()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user