Use shell icon for when file is exec and has no extension

This commit is contained in:
Tanner Babcock 2022-05-03 00:31:22 +00:00 committed by Abin Simon
parent 8bf17ff89d
commit bdb09f52c5

View file

@ -87,6 +87,9 @@ impl Icons {
}) {
// Use the known extensions.
icon
} else if let FileType::File { exec: true, .. } = file_type {
// If file has no extension and is executable
"\u{f489}" // ""
} else {
// Use the default icons.
self.default_file_icon