voelin-gpui: the tree has no words of its own for a search it does not have
The tree's empty_words had an arm for Emptiness::NoMatch with a string no user can reach: the tree's emptiness comes from Emptiness::of, which never says NoMatch (the members' search is the panel's, TreeModel::people_emptiness). The arm shares the Connect words now, with the reason in a comment. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
a2bdc9d745
commit
64b17159be
1 file changed
+4
-3
@@ -153,9 +153,10 @@ fn empty_words(emptiness: Emptiness) -> &'static str {
|
||||
match emptiness {
|
||||
Emptiness::NoServer => "No server yet.",
|
||||
Emptiness::Loading => "Loading the channels…",
|
||||
Emptiness::Connect => "Connect to see the channels.",
|
||||
// The tree is not searched; a server with people has channels.
|
||||
Emptiness::NoMatch => "No channels here.",
|
||||
// The tree is not searched, so it is never `NoMatch` (the members
|
||||
// panel's, `TreeModel::people_emptiness`): the model gives it
|
||||
// `Emptiness::of`, which does not say it.
|
||||
Emptiness::Connect | Emptiness::NoMatch => "Connect to see the channels.",
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user