Merge pull request #351 from dengelt/no-results-found

Display no-results message instead of empty-folder when there are no search results
This commit is contained in:
Jeremy Soller 2024-08-15 07:51:28 -06:00 committed by GitHub
commit 92a14fb080
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 5 additions and 1 deletions

View file

@ -2294,6 +2294,8 @@ impl Tab {
.into(),
widget::text(if has_hidden {
fl!("empty-folder-hidden")
} else if matches!(self.location, Location::Search(_, _)) {
fl!("no-results")
} else {
fl!("empty-folder")
})