mirror of
https://codeberg.org/fairyglade/ly.git
synced 2026-08-26 15:34:20 +02:00
ui: Let the info line render after empty password error
Signed-off-by: AnErrupTion <anerruption@disroot.org>
This commit is contained in:
parent
432560a1cd
commit
39ea43c3cb
1 changed files with 0 additions and 17 deletions
17
src/main.zig
17
src/main.zig
|
|
@ -1494,23 +1494,6 @@ fn authenticate(ptr: *anyopaque) !bool {
|
|||
state.config.error_bg,
|
||||
state.config.error_fg,
|
||||
);
|
||||
if (!state.is_autologin) {
|
||||
state.info_line.clearRendered(state.allocator) catch |err| {
|
||||
try state.info_line.addMessage(
|
||||
state.lang.err_alloc,
|
||||
state.config.error_bg,
|
||||
state.config.error_fg,
|
||||
);
|
||||
try state.log_file.err(
|
||||
state.io,
|
||||
"tui",
|
||||
"failed to clear info line: {s}",
|
||||
.{@errorName(err)},
|
||||
);
|
||||
};
|
||||
state.info_line.label.draw();
|
||||
try TerminalBuffer.presentBuffer();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue