diff options
author | Oleh <45392385+olehs0@users.noreply.github.com> | 2020-04-05 19:22:27 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-05 18:22:27 +0200 |
commit | 11da09934e82f1218fd7c284d823ee68bf4ae58a (patch) | |
tree | fe9a0e690049d77cf723a7e9c3fc8a24bffa518a /src/display/ui.rs | |
parent | d4a6b86d4da37264b1936082a1369a7e0f756e2e (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.rs | 4 |
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, |