mirror of
https://github.com/fairyglade/ly
synced 2024-11-16 00:12:58 +00:00
Update main.c
This commit is contained in:
parent
559f2f7370
commit
a078a07ee7
14
src/main.c
14
src/main.c
@ -138,13 +138,13 @@ int main(int argc, char** argv)
|
|||||||
|
|
||||||
//Place the curser on the login field if there is no saved username, if there is, place the curser on the password field
|
//Place the curser on the login field if there is no saved username, if there is, place the curser on the password field
|
||||||
uint8_t active_input;
|
uint8_t active_input;
|
||||||
if (login.text == login.end)
|
if (config.default_input == LOGIN_INPUT && login.text != login.end){
|
||||||
{
|
active_input = PASSWORD_INPUT;
|
||||||
active_input = LOGIN_INPUT;
|
}
|
||||||
}
|
else{
|
||||||
else{
|
active_input = config.default_input;
|
||||||
active_input = PASSWORD_INPUT;
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// init drawing stuff
|
// init drawing stuff
|
||||||
draw_init(&buf);
|
draw_init(&buf);
|
||||||
|
Loading…
Reference in New Issue
Block a user