Skip to content

Commit

Permalink
Update main.c
Browse files Browse the repository at this point in the history
  • Loading branch information
kefoster951 committed May 13, 2022
1 parent 559f2f7 commit a078a07
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
uint8_t active_input;
if (login.text == login.end)
{
active_input = LOGIN_INPUT;
}
else{
active_input = PASSWORD_INPUT;
}
if (config.default_input == LOGIN_INPUT && login.text != login.end){
active_input = PASSWORD_INPUT;
}
else{
active_input = config.default_input;
}


// init drawing stuff
draw_init(&buf);
Expand Down

0 comments on commit a078a07

Please sign in to comment.