voelin-gpui: the sample pictures only when asked and removed at close; two small fixes

- The sample servers' pictures were written to a folder of the temporary
  directory by every state that showed them, tests included, and the folder
  went only with a dropped state, which the test platform and a killed run
  never do. The pictures are now a switch (Switches::demo_pictures: what
  VOELIN_DEMO_UI sets, and what a test asks for by name) and the folder is
  removed when the window closes (AppState::shutdown) as well as with the
  state.
- The tree does not redraw for a change of the people's count, which is the
  members panel's, and an unfolded channel leaves no empty entry in what the
  trees remember.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
faumarayandClaude Sonnet 5.5 committed 2026-10-28 00:40:25 +03:00
1 parent 68a1694d7b
commit faef1325ab
4 files changed
+83 -34

No files matched your search

+5 -1
View File
@@ -75,7 +75,11 @@ impl MembersPane {
}
TreeEvent::Lists => {
let model = model.read(cx);
(this.total, this.emptiness) = (model.total(), model.emptiness());
let now = (model.total(), model.emptiness());
if now == (this.total, this.emptiness) {
return;
}
(this.total, this.emptiness) = now;
}
TreeEvent::Card => this.open = model.read(cx).card().map(|card| card.id),
TreeEvent::Rows(_) | TreeEvent::Selection => return,