wip: sort by

This commit is contained in:
Jack Wills
2022-07-22 16:33:40 +00:00
parent dc4a62910c
commit d14744b378
6 changed files with 258 additions and 166 deletions
+2
View File
@@ -157,6 +157,7 @@ fn ui<B: Backend>(
let show_help = gui_state.lock().show_help;
let info_text = gui_state.lock().info_box_text.clone();
let loading_icon = gui_state.lock().get_loading();
let sorted_by = app_data.lock().get_sorted();
let whole_layout = Layout::default()
.direction(Direction::Vertical)
@@ -214,6 +215,7 @@ fn ui<B: Backend>(
has_containers,
loading_icon,
show_help,
sorted_by,
);
// only draw charts if there are containers