From c89b6a8fc77d34dffcd091c38c7395cd3929d254 Mon Sep 17 00:00:00 2001 From: Azat Khuzhin Date: Thu, 2 Nov 2023 22:18:51 +0100 Subject: [PATCH] Fix preserving focus --- src/view/processes_view.rs | 2 +- src/view/query_result_view.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/view/processes_view.rs b/src/view/processes_view.rs index 334000b..65cf203 100644 --- a/src/view/processes_view.rs +++ b/src/view/processes_view.rs @@ -243,7 +243,7 @@ impl ProcessesView { self.has_selection_column = false; } - inner_table.set_items(items); + inner_table.set_items_stable(items); } fn show_flamegraph(self: &mut Self, tui: bool, trace_type: Option) -> Result<()> { diff --git a/src/view/query_result_view.rs b/src/view/query_result_view.rs index f76d0f1..3aedcc7 100644 --- a/src/view/query_result_view.rs +++ b/src/view/query_result_view.rs @@ -142,7 +142,7 @@ impl QueryResultView { } let inner_table = self.table.get_inner_mut().get_inner_mut(); - inner_table.set_items(items); + inner_table.set_items_stable(items); return Ok(()); }