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);
|
||||
(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),
|
||||
|
||||
Reference in new issue
Block a user