Skip to content

Commit aa678db

Browse files
committed
feat: scroll to selected when unselecting
1 parent 610df50 commit aa678db

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/app.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,8 @@ impl LogViewerApp {
507507
(true, false) => data.filter = Some(Default::default()),
508508
(false, true) => {
509509
data.unfilter();
510-
data.filter = None
510+
data.filter = None;
511+
self.should_scroll = true;
511512
}
512513
}
513514
let mut should_apply_filter = false;
@@ -693,6 +694,7 @@ impl LogViewerApp {
693694
ui.separator();
694695
if shortcut_button(ui, "Unfilter", "Clears Filter", &self.shortcuts.unfilter) {
695696
data.unfilter();
697+
self.should_scroll = true;
696698
}
697699
}
698700
}

0 commit comments

Comments
 (0)