Preview and gallery mode changes, part of #540
This commit is contained in:
parent
18c1301820
commit
9b8844a884
5 changed files with 12 additions and 4 deletions
|
|
@ -850,6 +850,7 @@ pub enum Message {
|
|||
Gallery(bool),
|
||||
GalleryPrevious,
|
||||
GalleryNext,
|
||||
GalleryToggle,
|
||||
GoNext,
|
||||
GoPrevious,
|
||||
ItemDown,
|
||||
|
|
@ -2071,6 +2072,9 @@ impl Tab {
|
|||
commands.push(Command::Iced(widget::button::focus(id)));
|
||||
}
|
||||
}
|
||||
Message::GalleryToggle => {
|
||||
self.gallery = !self.gallery;
|
||||
}
|
||||
Message::GoNext => {
|
||||
if let Some(history_i) = self.history_i.checked_add(1) {
|
||||
if let Some(location) = self.history.get(history_i) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue