mirror of
https://github.com/aristocratos/btop.git
synced 2024-06-02 02:24:54 +12:00
Fixed: Processes not completely hidden when collapsed in tree mode
This commit is contained in:
parent
afc2288405
commit
5e6d1babdc
|
@ -1331,11 +1331,8 @@ namespace Proc {
|
|||
+ Theme::c("inactive_fg") + Fx::ub + graph_bg * (d_width / 3) + Mv::l(d_width / 3)
|
||||
+ Theme::c("proc_misc") + detailed_mem_graph(detailed.mem_bytes, (redraw or data_same or not alive)) + ' '
|
||||
+ Theme::c("title") + Fx::b + detailed.memory;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
//? Check bounds of current selection and view
|
||||
if (start > 0 and numpids <= select_max)
|
||||
start = 0;
|
||||
|
@ -1349,7 +1346,7 @@ namespace Proc {
|
|||
//* Iteration over processes
|
||||
int lc = 0;
|
||||
for (int n=0; auto& p : plist) {
|
||||
if (n++ < start or p.filtered) continue;
|
||||
if (n++ < start or p.filtered or (proc_tree and p.tree_index == plist.size())) continue;
|
||||
bool is_selected = (lc + 1 == selected);
|
||||
if (is_selected) {
|
||||
selected_pid = (int)p.pid;
|
||||
|
|
|
@ -1170,6 +1170,7 @@ namespace Proc {
|
|||
out_procs.back().get().cpu_p += p.cpu_p;
|
||||
out_procs.back().get().mem += p.mem;
|
||||
out_procs.back().get().threads += p.threads;
|
||||
filter_found++;
|
||||
}
|
||||
if (collapsed and not filtering) {
|
||||
cur_proc.filtered = true;
|
||||
|
|
Loading…
Reference in a new issue