diff --git a/ui-gpui/src/components/blink_state.rs b/ui-gpui/src/components/blink_state.rs index 2dbc3ad..07e5b4c 100644 --- a/ui-gpui/src/components/blink_state.rs +++ b/ui-gpui/src/components/blink_state.rs @@ -19,21 +19,15 @@ impl BlinkState { pub fn start_from_context(entity: &Entity, cx: &mut Context) { let weak = entity.downgrade(); - eprintln!("[BlinkState] Starting blink timer"); cx.spawn(async move |_parent: WeakEntity, cx: &mut AsyncApp| { - eprintln!("[BlinkState] Spawn executing — entering blink loop"); loop { cx.background_executor().timer(Duration::from_millis(500)).await; let ok = weak.update(cx, |state, cx| { state.visible = !state.visible; state.epoch += 1; - eprintln!("[BlinkState] Toggled visible={}", state.visible); cx.notify(); }); - if ok.is_err() { - eprintln!("[BlinkState] Entity dropped, stopping blink"); - break; - } + if ok.is_err() { break; } } }).detach(); } diff --git a/ui-gpui/src/components/project_box.rs b/ui-gpui/src/components/project_box.rs index 822498f..11ae3f3 100644 --- a/ui-gpui/src/components/project_box.rs +++ b/ui-gpui/src/components/project_box.rs @@ -102,7 +102,7 @@ impl ProjectBox { /// Initialize sub-views. Must be called after the ProjectBox entity is created. pub fn init_subviews(&mut self, cx: &mut Context) { - eprintln!("[ProjectBox] init_subviews for {}", self.project.name); + // Initialize sub-views after entity registration // Shared blink state — separate entity, ProjectBox reads it in render. // cx.notify() on BlinkState only dirties views that .read() it (ProjectBox), @@ -132,9 +132,6 @@ impl ProjectBox { impl Render for ProjectBox { fn render(&mut self, _window: &mut Window, cx: &mut Context) -> impl IntoElement { - eprintln!("[ProjectBox::render] {} blink_visible={:?}", - self.project.name, - self.blink_state.as_ref().map(|bs| bs.read(cx).visible)); let accent = accent_color(self.project.accent_index); let active_tab = self.project.active_tab;