mirror of
https://github.com/ClementTsang/bottom.git
synced 2025-07-25 14:44:39 +02:00
Fixed bug with basic mode and default position with basic variants.
This commit is contained in:
parent
7ca12b0fa2
commit
1ba1b0318f
11
src/app.rs
11
src/app.rs
@ -292,7 +292,16 @@ impl App {
|
|||||||
process_sorting_type: processes::ProcessSorting::CPU,
|
process_sorting_type: processes::ProcessSorting::CPU,
|
||||||
process_sorting_reverse: true,
|
process_sorting_reverse: true,
|
||||||
update_process_gui: false,
|
update_process_gui: false,
|
||||||
current_widget_selected,
|
current_widget_selected: if use_basic_mode {
|
||||||
|
match current_widget_selected {
|
||||||
|
WidgetPosition::Cpu => WidgetPosition::BasicCpu,
|
||||||
|
WidgetPosition::Network => WidgetPosition::BasicNet,
|
||||||
|
WidgetPosition::Mem => WidgetPosition::BasicMem,
|
||||||
|
_ => current_widget_selected,
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
current_widget_selected
|
||||||
|
},
|
||||||
last_basic_table_widget_selected: if current_widget_selected.is_widget_table() {
|
last_basic_table_widget_selected: if current_widget_selected.is_widget_table() {
|
||||||
current_widget_selected
|
current_widget_selected
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user