Revert "gpui: Defer thermal/keyboard state updates when app is borrowed" (#49251)
Marco Mihai Condrache
created
Reverts #49189
Reverts #49187
#49189 introduces a panic
(https://github.com/zed-industries/zed/pull/49189#issuecomment-3904914597,
https://github.com/zed-industries/zed/issues/49181#issuecomment-3906639392)
#49187 It's wrong since it leads to missing updates
The original crash should be fixed with #49086
cc: @bennetbo
Release Notes:
- N/A
@@ -1,9 +0,0 @@
-# GPUI crate-specific rules-#-# This file is non-exhaustive. Check the root .rules for general guidelines.--# Platform callbacks--* Platform callbacks (e.g., `on_keyboard_layout_change`, `on_thermal_state_change`) can fire- asynchronously from macOS while `AppCell` is already borrowed. Defer work via- `ForegroundExecutor::spawn` rather than borrowing `AppCell` directly in the callback body.