mirror of https://github.com/fairyglade/ly.git
Fix: Default battery status to row 1 when hide_key_hints and hide_version_string is true (fixes #844) (#845)
Default battery status behaviour to usize 0 when hide_key_hints and hide_version_string is true as a fix to issue [#844](https://codeberg.org/fairyglade/ly/issues/844) Reviewed-on: https://codeberg.org/fairyglade/ly/pulls/845 Reviewed-by: AnErrupTion <anerruption@disroot.org> Co-authored-by: ebits <tspamiitesh@gmail.com> Co-committed-by: ebits <tspamiitesh@gmail.com>
This commit is contained in:
parent
339e39d496
commit
81a17f2904
|
@ -583,7 +583,7 @@ pub fn main() !void {
|
|||
var battery_buf: [16:0]u8 = undefined;
|
||||
const battery_str = std.fmt.bufPrintZ(&battery_buf, "BAT: {d}%", .{battery_percentage}) catch break :draw_battery;
|
||||
|
||||
const battery_y: usize = 1;
|
||||
const battery_y: usize = if (config.hide_key_hints and config.hide_version_string) 0 else 1;
|
||||
buffer.drawLabel(battery_str, 0, battery_y);
|
||||
battery_bar_shown = true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue