summaryrefslogtreecommitdiffstats
path: root/src/display/ui.rs
diff options
context:
space:
mode:
authorOleh <45392385+olehs0@users.noreply.github.com>2020-04-05 19:22:27 +0300
committerGitHub <noreply@github.com>2020-04-05 18:22:27 +0200
commit11da09934e82f1218fd7c284d823ee68bf4ae58a (patch)
treefe9a0e690049d77cf723a7e9c3fc8a24bffa518a /src/display/ui.rs
parentd4a6b86d4da37264b1936082a1369a7e0f756e2e (diff)
feat(network): hide dns queries by default (#161)
* add filter by dns queries * update snapshots with cargo fmt * add tests with filtering improvement
Diffstat (limited to 'src/display/ui.rs')
-rw-r--r--src/display/ui.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/display/ui.rs b/src/display/ui.rs
index cb4e7bd..4530664 100644
--- a/src/display/ui.rs
+++ b/src/display/ui.rs
@@ -77,7 +77,7 @@ where
));
}
}
- pub fn draw(&mut self, paused: bool) {
+ pub fn draw(&mut self, paused: bool, show_dns: bool) {
let state = &self.state;
let children = self.get_tables_to_display();
self.terminal
@@ -87,7 +87,7 @@ where
state: &state,
paused,
};
- let help_text = HelpText { paused };
+ let help_text = HelpText { paused, show_dns };
let layout = Layout {
header: total_bandwidth,
children,