Skip to content

Commit

Permalink
Fixed: Battery meter draw fix
Browse files Browse the repository at this point in the history
  • Loading branch information
aristocratos committed Feb 11, 2022
1 parent 31555d8 commit ac5ad87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/btop_draw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@ namespace Cpu {

out += Mv::to(y, bat_pos) + title_left + Theme::c("title") + Fx::b + "BAT" + bat_symbol + ' ' + str_percent
+ (Term::width >= 100 ? Fx::ub + ' ' + bat_meter(percent) + Fx::b : "")
+ (not str_time.empty() ? ' ' + Theme::c("title") + str_time : "") + Fx::ub + title_right;
+ (not str_time.empty() ? ' ' + Theme::c("title") + str_time : " ") + Fx::ub + title_right;
}
}
else if (bat_pos > 0) {
Expand Down

0 comments on commit ac5ad87

Please sign in to comment.