diff --git a/crates/voelin-gpui/src/shell/tree_model.rs b/crates/voelin-gpui/src/shell/tree_model.rs index 3384a64..8fff4fc 100644 --- a/crates/voelin-gpui/src/shell/tree_model.rs +++ b/crates/voelin-gpui/src/shell/tree_model.rs @@ -189,12 +189,8 @@ impl TreeModel { let state = app.read(cx); (Snapshot::of(state), state.signals().clone()) }; - let subscriptions = signals.watch( - app, - &[Area::Tree, Area::Toolbar, Area::MemberCard], - cx, - |this: &mut Self, _, cx| this.refresh(cx), - ); + let subscriptions = + signals.watch(app, &AREAS, cx, |this: &mut Self, _, cx| this.refresh(cx)); Self { app: app.clone(), seen: generations(app, cx), diff --git a/docs/ui.md b/docs/ui.md index fe4986f..dfd68cf 100644 --- a/docs/ui.md +++ b/docs/ui.md @@ -1487,8 +1487,8 @@ What is on screen: #### Per-area signals and cached panes The foundation's and the shell's reviews left the design for this slice: a -change of the channel tree must not draw the rail, and a talker must not draw -the tree. Two parts of it came from reading gpui-pre 0.3.10 and were checked by +change of the channel tree must not draw the rail, and a talker draws the tree +and the members panel and nothing else (the gate's parity ruling, below). Two parts of it came from reading gpui-pre 0.3.10 and were checked by the tests: - **`Update.refresh` is raised as signals** (`signals.rs`). The root state