Skip to content

Commit

Permalink
feat: scroll to selected when unselecting
Browse files Browse the repository at this point in the history
  • Loading branch information
c-git committed Sep 11, 2024
1 parent 610df50 commit aa678db
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,8 @@ impl LogViewerApp {
(true, false) => data.filter = Some(Default::default()),
(false, true) => {
data.unfilter();
data.filter = None
data.filter = None;
self.should_scroll = true;
}
}
let mut should_apply_filter = false;
Expand Down Expand Up @@ -693,6 +694,7 @@ impl LogViewerApp {
ui.separator();
if shortcut_button(ui, "Unfilter", "Clears Filter", &self.shortcuts.unfilter) {
data.unfilter();
self.should_scroll = true;
}
}
}
Expand Down

0 comments on commit aa678db

Please sign in to comment.