Merge branch 'master' into master

This commit is contained in:
thoxy
2025-06-17 12:36:17 +02:00
3 changed files with 10 additions and 3 deletions

View File

@@ -427,9 +427,14 @@ pub fn main() !void {
if (auth_fails < config.auth_fails) {
_ = termbox.tb_clear();
var length: usize = 0;
if (!animation_timed_out) animation.draw();
buffer.drawLabel(ly_top_str, 0, 0);
if (!config.hide_version_string) {
buffer.drawLabel(ly_top_str, length, 0);
length += ly_top_str.len + 1;
}
if (config.bigclock != .none and buffer.box_height + (bigclock.HEIGHT + 2) * 2 < buffer.height) draw_big_clock: {
const format = "%H:%M";
@@ -490,8 +495,6 @@ pub fn main() !void {
info_line.label.draw();
if (!config.hide_key_hints) {
var length: usize = ly_top_str.len + 1;
buffer.drawLabel(config.shutdown_key, length, 0);
length += config.shutdown_key.len + 1;
buffer.drawLabel(" ", length - 1, 0);