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:
commit
92a14fb080
4 changed files with 5 additions and 1 deletions
|
|
@ -1,6 +1,7 @@
|
|||
cosmic-files = COSMIC Dateien
|
||||
empty-folder = Leerer Ordner
|
||||
empty-folder-hidden = Leerer Ordner (hat versteckte Dateien)
|
||||
no-results = Keine Ergebnisse gefunden
|
||||
filesystem = Dateisystem
|
||||
home = Home
|
||||
trash = Papierkorb
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
cosmic-files = COSMIC Files
|
||||
empty-folder = Empty folder
|
||||
empty-folder-hidden = Empty folder (has hidden items)
|
||||
no-results = No results found
|
||||
filesystem = Filesystem
|
||||
home = Home
|
||||
notification-in-progress = File operations are in progress.
|
||||
|
|
|
|||
2
justfile
2
justfile
|
|
@ -62,7 +62,7 @@ dev *args:
|
|||
# Run with debug logs
|
||||
run *args:
|
||||
cargo build --release
|
||||
env RUST_LOG=cosmic_files=info RUST_BACKTRACE=full target/release/cosmic-files {{args}}
|
||||
env RUST_LOG=cosmic_files=info RUST_BACKTRACE=full {{bin-src}} {{args}}
|
||||
|
||||
# Run tests
|
||||
test *args:
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue