Skip to content

Commit 65faa6e

Browse files
authored
Merge branch 'pop-os:master' into dep-freedesktop-entry-parser
2 parents 61a8ff2 + b45ef62 commit 65faa6e

File tree

2 files changed

+18
-19
lines changed

2 files changed

+18
-19
lines changed

i18n/en/cosmic_files.ftl

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ no-results = No results found
55
filesystem = Filesystem
66
home = Home
77
networks = Networks
8-
notification-in-progress = File operations are in progress.
8+
notification-in-progress = File operations are in progress
99
trash = Trash
1010
recents = Recents
1111
undo = Undo
@@ -52,8 +52,8 @@ extract-to = Extract To...
5252
extract-to-title = Extract to folder
5353
5454
## Empty Trash Dialog
55-
empty-trash = Empty trash
56-
empty-trash-warning = Are you sure you want to permanently delete all the items in Trash?
55+
empty-trash = Empty trash?
56+
empty-trash-warning = Items in the Trash folder will be permanently deleted
5757
5858
## Mount Error Dialog
5959
mount-error = Unable to access drive
@@ -63,11 +63,11 @@ create-new-file = Create new file
6363
create-new-folder = Create new folder
6464
file-name = File name
6565
folder-name = Folder name
66-
file-already-exists = A file with that name already exists.
67-
folder-already-exists = A folder with that name already exists.
68-
name-hidden = Names starting with "." will be hidden.
69-
name-invalid = Name cannot be "{$filename}".
70-
name-no-slashes = Name cannot contain slashes.
66+
file-already-exists = A file with that name already exists
67+
folder-already-exists = A folder with that name already exists
68+
name-hidden = Names starting with "." will be hidden
69+
name-invalid = Name cannot be "{$filename}"
70+
name-no-slashes = Name cannot contain slashes
7171
7272
## Open/Save Dialog
7373
cancel = Cancel
@@ -91,17 +91,17 @@ related-apps = Related applications
9191
9292
## Permanently delete Dialog
9393
selected-items = the {$items} selected items
94-
permanently-delete-question = Permanently delete
94+
permanently-delete-question = Permanently delete?
9595
delete = Delete
96-
permanently-delete-warning = Are you sure you want to permanently delete {$target}? This cannot be undone.
96+
permanently-delete-warning = {$target} will be permanently deleted. This action can't be undone.
9797
9898
## Rename Dialog
9999
rename-file = Rename file
100100
rename-folder = Rename folder
101101
102102
## Replace Dialog
103103
replace = Replace
104-
replace-title = "{$filename}" already exists in this location.
104+
replace-title = "{$filename}" already exists in this location
105105
replace-warning = Do you want to replace it with the one you are saving? Replacing it will overwrite its content.
106106
replace-warning-operation = Do you want to replace it? Replacing it will overwrite its content.
107107
original-file = Original file
@@ -140,8 +140,8 @@ read-write-execute = Read, write, and execute
140140
## Favorite Path Error Dialog
141141
favorite-path-error = Error opening directory
142142
favorite-path-error-description =
143-
Unable to open "{$path}".
144-
It may not exist or you don't have permission to open it.
143+
Unable to open "{$path}"
144+
"{$path}" might not exist or you might not have permission to open it
145145
146146
Would you like to remove it from the sidebar?
147147
remove = Remove
@@ -292,8 +292,8 @@ match-desktop = Match desktop
292292
dark = Dark
293293
light = Light
294294
295-
### Type to Search
296-
type-to-search = Type to Search
295+
### Type to search
296+
type-to-search = Type to search
297297
type-to-search-recursive = Searches the current folder and all subfolders
298298
type-to-search-enter-path = Enters the path to the directory or file
299299

src/tab.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ use icu::{
4646
},
4747
locale::preferences::extensions::unicode::keywords::HourCycle,
4848
};
49-
use image::ImageDecoder;
49+
use image::{DynamicImage, ImageDecoder, ImageReader};
5050
use jxl_oxide::integration::JxlDecoder;
5151
use mime_guess::{Mime, mime};
5252
use rustc_hash::FxHashMap;
@@ -1947,10 +1947,9 @@ impl ItemThumbnail {
19471947
Ok(status) => {
19481948
if status.success() {
19491949
match image::ImageReader::open(file.path())
1950-
.and_then(image::ImageReader::with_guessed_format)
1950+
.and_then(ImageReader::with_guessed_format)
19511951
{
1952-
Ok(reader) => match reader.decode().map(image::DynamicImage::into_rgb8)
1953-
{
1952+
Ok(reader) => match reader.decode().map(DynamicImage::into_rgba8) {
19541953
Ok(image) => {
19551954
return Some((
19561955
Self::Image(

0 commit comments

Comments
 (0)