Merge pull request #554 from iamkartiknayak/fix/image-only-gallery
fix(gallery): trigger gallery view only on images
This commit is contained in:
commit
d3f91e6457
1 changed files with 8 additions and 1 deletions
|
|
@ -2030,7 +2030,14 @@ impl Tab {
|
|||
}
|
||||
}
|
||||
Message::GalleryToggle => {
|
||||
self.gallery = !self.gallery;
|
||||
if let Some(indices) = self.column_sort() {
|
||||
for (_, item) in indices.iter() {
|
||||
if item.selected && item.mime.type_() == mime::IMAGE {
|
||||
self.gallery = !self.gallery;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Message::GoNext => {
|
||||
if let Some(history_i) = self.history_i.checked_add(1) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue