Skip to content

feat(tray): improve macOS speed test submenu behavior - #104

Open
julxxy wants to merge 2 commits into
appshubcc:mainfrom
julxxy:feat/tray-speedtest-menu
Open

feat(tray): improve macOS speed test submenu behavior#104
julxxy wants to merge 2 commits into
appshubcc:mainfrom
julxxy:feat/tray-speedtest-menu

Conversation

@julxxy

@julxxy julxxy commented May 9, 2026

Copy link
Copy Markdown

Summary

Improve macOS tray submenu behavior for proxy group speed testing.

Changes

  • Add per-group delay state management for tray submenu
  • Show 延迟测速 -> 测速中... -> 重新测速 state transitions
  • Sort submenu nodes by delay after testing, with DIRECT always last
  • Auto-select best node for manually tested Selector / URLTest groups
  • Refresh tray menu selection state after auto switch
  • Avoid tray icon flicker by removing forced destroy/rebuild behavior

Files changed

  • lib/common/tray.dart
  • lib/manager/tray_manager.dart
  • lib/providers/proxy_delay_provider.dart
  • generated freezed / g.dart files

Notes

This focuses on macOS tray behavior and keeps the current cross-platform tray_manager limitations unchanged.

julxxy added 2 commits May 9, 2026 13:11
- Add _autoSelectBestNode() for Selector and URLTest groups
- Fix tray menu not syncing selected node after auto-switch
- Remove icon flicker by setting force=false permanently
- Improve testing state display with immediate refresh (skip debounce)
- Add _autoSelectBestNode() for Selector and URLTest groups
- Fix tray menu not syncing selected node after auto-switch
- Remove icon flicker by setting force=false permanently
- Improve testing state display with immediate refresh (skip debounce)
@appshubcc
appshubcc force-pushed the main branch 2 times, most recently from b9361df to c9593e0 Compare June 8, 2026 05:44
@appshubcc
appshubcc force-pushed the main branch 2 times, most recently from 7fc30ae to d12a095 Compare June 26, 2026 06:25
@appshubcc
appshubcc force-pushed the main branch 3 times, most recently from 9fa80ff to 9ecb877 Compare July 5, 2026 09:59
@appshubcc
appshubcc force-pushed the main branch 2 times, most recently from 6280e0f to d05cf43 Compare July 7, 2026 01:35
@appshubcc
appshubcc force-pushed the main branch 2 times, most recently from bb605a0 to 570c649 Compare July 18, 2026 17:07
@appshubcc
appshubcc force-pushed the main branch 2 times, most recently from 95bde57 to c0bb574 Compare August 13, 2026 04:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant