mirror of https://github.com/fairyglade/ly.git
Autologin: Don't draw info line (closes #1002)
Signed-off-by: AnErrupTion <anerruption@disroot.org>
This commit is contained in:
parent
4d882f7997
commit
8f4ca8d3f0
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue