unl0kr: fix password mode
This commit is contained in:
parent
c5f22d50ab
commit
bb00d95f06
1 changed files with 2 additions and 4 deletions
|
|
@ -534,7 +534,8 @@ int main(int argc, char *argv[]) {
|
|||
/* Textarea */
|
||||
lv_obj_t *textarea = lv_textarea_create(textarea_container);
|
||||
lv_textarea_set_one_line(textarea, true);
|
||||
lv_textarea_set_password_mode(textarea, true);
|
||||
lv_textarea_set_password_mode(textarea, conf_opts.textarea.obscured);
|
||||
is_password_obscured = conf_opts.textarea.obscured;
|
||||
lv_textarea_set_password_bullet(textarea, conf_opts.textarea.bullet);
|
||||
lv_textarea_set_placeholder_text(textarea, "Enter password...");
|
||||
lv_obj_add_event_cb(textarea, textarea_ready_cb, LV_EVENT_READY, NULL);
|
||||
|
|
@ -581,9 +582,6 @@ int main(int argc, char *argv[]) {
|
|||
|
||||
keyboard = bbx_keyboard_create(screen, textarea, &keyboard_config);
|
||||
|
||||
/* Apply textarea options */
|
||||
set_password_obscured(conf_opts.textarea.obscured);
|
||||
|
||||
/* Apply keyboard options */
|
||||
sq2lv_switch_layout(keyboard, conf_opts.keyboard.layout_id);
|
||||
lv_dropdown_set_selected(header_widgets.layout_dropdown, conf_opts.keyboard.layout_id);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue