Autologin: Don't draw info line (closes #1002)

Signed-off-by: AnErrupTion <anerruption@disroot.org>
This commit is contained in:
AnErrupTion 2026-07-03 18:33:58 +02:00
parent 4d882f7997
commit 8f4ca8d3f0
No known key found for this signature in database
1 changed files with 26 additions and 22 deletions

View File

@ -1483,6 +1483,7 @@ 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,
@ -1498,6 +1499,7 @@ fn authenticate(ptr: *anyopaque) !bool {
};
state.info_line.label.draw();
try TerminalBuffer.presentBuffer();
}
return false;
}
@ -1506,6 +1508,7 @@ fn authenticate(ptr: *anyopaque) !bool {
state.config.bg,
state.config.fg,
);
if (!state.is_autologin) {
state.info_line.clearRendered(state.allocator) catch |err| {
try state.info_line.addMessage(
state.lang.err_alloc,
@ -1521,6 +1524,7 @@ fn authenticate(ptr: *anyopaque) !bool {
};
state.info_line.label.draw();
try TerminalBuffer.presentBuffer();
}
if (state.config.save) save_last_settings: {
// It isn't worth cluttering the code with precise error