aboutsummaryrefslogtreecommitdiff
path: root/src/app.rs
diff options
context:
space:
mode:
authorlukeflo2024-11-15 15:56:57 +0100
committerlukeflo2024-11-15 15:56:57 +0100
commit511d380da8e198c01cd73fe9da35d557584a0023 (patch)
treef385c11fb10ebed45656207cce602b7d7f17494c /src/app.rs
parentb9a2a79b5ae1315c03029adf37661deb9140b8dd (diff)
downloadbibiman-511d380da8e198c01cd73fe9da35d557584a0023.tar.gz
bibiman-511d380da8e198c01cd73fe9da35d557584a0023.zip
selection popup: not impl as trait...
Diffstat (limited to 'src/app.rs')
-rw-r--r--src/app.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/app.rs b/src/app.rs
index 3268649..6163ae3 100644
--- a/src/app.rs
+++ b/src/app.rs
@@ -141,6 +141,8 @@ impl App {
CurrentArea::PopupArea => {
if let Some(PopupKind::Help) = self.bibiman.popup_area.popup_kind {
self.bibiman.popup_area.popup_scroll_down();
+ } else if let Some(PopupKind::Selection) = self.bibiman.popup_area.popup_kind {
+ self.bibiman.popup_area.popup_state.scroll_down_by(1)
}
}
_ => {}
@@ -156,6 +158,8 @@ impl App {
CurrentArea::PopupArea => {
if let Some(PopupKind::Help) = self.bibiman.popup_area.popup_kind {
self.bibiman.popup_area.popup_scroll_up();
+ } else if let Some(PopupKind::Selection) = self.bibiman.popup_area.popup_kind {
+ self.bibiman.popup_area.popup_state.scroll_up_by(1)
}
}
_ => {}