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:
1 parent
68a1694d7b
commit
faef1325ab
4 files changed
+83
-34
No files matched your search
@@ -63,7 +63,14 @@ impl ChannelTree {
|
||||
this.apply(changes, new);
|
||||
}
|
||||
TreeEvent::Selection => this.selected = model.read(cx).selected(),
|
||||
TreeEvent::Lists => this.emptiness = model.read(cx).emptiness(),
|
||||
// The count of people is the members panel's.
|
||||
TreeEvent::Lists => {
|
||||
let emptiness = model.read(cx).emptiness();
|
||||
if emptiness == this.emptiness {
|
||||
return;
|
||||
}
|
||||
this.emptiness = emptiness;
|
||||
}
|
||||
TreeEvent::People(_) | TreeEvent::Card => return,
|
||||
}
|
||||
cx.notify();
|
||||
|
||||
Reference in new issue
Block a user