voelin-gpui: TreeModel watches the one AREAS list; docs/ui.md's signals intro names the parity ruling (review minors)
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
1 parent
64b17159be
commit
50071d39f4
2 files changed
+4
-8
No files matched your search
@@ -189,12 +189,8 @@ impl TreeModel {
|
|||||||
let state = app.read(cx);
|
let state = app.read(cx);
|
||||||
(Snapshot::of(state), state.signals().clone())
|
(Snapshot::of(state), state.signals().clone())
|
||||||
};
|
};
|
||||||
let subscriptions = signals.watch(
|
let subscriptions =
|
||||||
app,
|
signals.watch(app, &AREAS, cx, |this: &mut Self, _, cx| this.refresh(cx));
|
||||||
&[Area::Tree, Area::Toolbar, Area::MemberCard],
|
|
||||||
cx,
|
|
||||||
|this: &mut Self, _, cx| this.refresh(cx),
|
|
||||||
);
|
|
||||||
Self {
|
Self {
|
||||||
app: app.clone(),
|
app: app.clone(),
|
||||||
seen: generations(app, cx),
|
seen: generations(app, cx),
|
||||||
|
|||||||
+2
-2
@@ -1487,8 +1487,8 @@ What is on screen:
|
|||||||
#### Per-area signals and cached panes
|
#### Per-area signals and cached panes
|
||||||
|
|
||||||
The foundation's and the shell's reviews left the design for this slice: a
|
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
|
change of the channel tree must not draw the rail, and a talker draws the tree
|
||||||
the tree. Two parts of it came from reading gpui-pre 0.3.10 and were checked by
|
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:
|
the tests:
|
||||||
|
|
||||||
- **`Update.refresh` is raised as signals** (`signals.rs`). The root state
|
- **`Update.refresh` is raised as signals** (`signals.rs`). The root state
|
||||||
|
|||||||
Reference in new issue
Block a user