Skip to content

Conversation

@xiaocang
Copy link

Summary

This fixes a crash where the popover would flash briefly but not display properly on macOS 15 (Sequoia), particularly on Apple Silicon Macs (tested on M4).

Changes

  • Replace deprecated MenuButton with modern Menu view - MenuButton was deprecated in macOS 12 and can cause rendering issues on newer macOS versions
  • Use button action/target pattern instead of NSEvent.addLocalMonitorForEvents - Manual event monitoring can conflict with modern macOS event handling
  • Fix incorrect @ObservedObject usage in MainViewModel - This property wrapper is only valid in SwiftUI Views, not regular classes

Test plan

  • Build and run on macOS 15 Sequoia with M4 chip
  • Click menu bar icon - popover displays correctly
  • Settings menu (gear icon) works properly
  • Process list updates as expected

🤖 Generated with Claude Code

This fixes a crash where the popover would flash briefly but not display
properly on macOS 15 (Sequoia), particularly on M4 Macs.

Changes:
- Replace deprecated MenuButton with modern Menu view
- Use button action/target pattern instead of NSEvent.addLocalMonitorForEvents
  which can conflict with modern macOS event handling
- Fix incorrect @ObservedObject usage in MainViewModel class
  (this property wrapper is only valid in SwiftUI Views)

Tested on macOS 15 with M4 chip.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
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