mirror of https://github.com/fairyglade/ly.git
Change info and error cases according to review
This commit is contained in:
parent
f8a57c905d
commit
ed33879066
|
@ -138,7 +138,7 @@ pub fn main() !void {
|
||||||
info_line.error_bg = config.error_bg;
|
info_line.error_bg = config.error_bg;
|
||||||
info_line.error_fg = config.error_fg;
|
info_line.error_fg = config.error_fg;
|
||||||
|
|
||||||
if (!build_options.enable_x11_support) try info_line.addError(lang.no_x11_support);
|
if (!build_options.enable_x11_support) info_line.setText(lang.no_x11_support);
|
||||||
|
|
||||||
interop.setNumlock(config.numlock) catch {};
|
interop.setNumlock(config.numlock) catch {};
|
||||||
|
|
||||||
|
@ -626,7 +626,7 @@ pub fn main() !void {
|
||||||
if (auth_err) |err| {
|
if (auth_err) |err| {
|
||||||
auth_fails += 1;
|
auth_fails += 1;
|
||||||
active_input = .password;
|
active_input = .password;
|
||||||
info_line.setText(getAuthErrorMsg(err, lang));
|
try info_line.addError(getAuthErrorMsg(err, lang));
|
||||||
if (config.clear_password or err != error.PamAuthError) password.clear();
|
if (config.clear_password or err != error.PamAuthError) password.clear();
|
||||||
} else {
|
} else {
|
||||||
password.clear();
|
password.clear();
|
||||||
|
|
Loading…
Reference in New Issue