gpui: Fix thermal state notifications on intel macOS (#49086)
Marco Mihai Condrache
created
Fixes
https://github.com/zed-industries/zed/pull/45638#issuecomment-3893732034
Closes #49005
The issue was similar to the one we already had with the quit method
https://github.com/zed-industries/zed/blob/8249ef56187b966c33f6667d0d3a35d88d8f2dc0/crates/gpui/src/platform/mac/platform.rs#L491
@notpeter Could you please test this branch to confirm it resolves the
issue?
- [ ] Tests or screenshots needed?
- [x] Code Reviewed
- [ ] Manual QA
Release Notes:
- Fixed an issue where Zed would randomly crash on macOS intel