Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
gpui: Remove redundant flushing_effects reentrancy guard (#65016)
laizyeca87ab896e9
diff --git a/crates/gpui/src/app.rs b/crates/gpui/src/app.rsindex a921de1aa03..58d439ddb4f 100644--- a/crates/gpui/src/app.rs+++ b/crates/gpui/src/app.rs@@ -843,7 +843,6 @@ pub struct App {/// Whether the app was created by [`Application::new_inaccessible`]. No/// accesskit APIs will be called when this flag is set.pub(crate) accessibility_force_disabled: bool,- flushing_effects: bool,pending_updates: usize,quit_mode: QuitMode,quitting: bool,@@ -887,7 +886,6 @@ impl App {text_rendering_mode: Rc::new(Cell::new(TextRenderingMode::default())),mode: GpuiMode::Production,actions: Rc::new(ActionRegistry::default()),- flushing_effects: false,pending_updates: 0,active_drag: None,platform_owned_drag: None,@@ -1252,10 +1250,8 @@ impl App {#[inline(never)]pub(crate) fn finish_update(&mut self) {- if !self.flushing_effects && self.pending_updates == 1 {- self.flushing_effects = true;+ if self.pending_updates == 1 {self.flush_effects();- self.flushing_effects = false;}self.pending_updates -= 1;}