mirror of
https://gitlab.freedesktop.org/plymouth/plymouth.git
synced 2026-05-08 15:58:20 +02:00
Remove all entry bullets if the user presses enter
Previously if the user mistyped their password they would get shown and entry with their old bullets still there.
This commit is contained in:
parent
2e3974e86a
commit
6a96ca6ef4
3 changed files with 9 additions and 0 deletions
|
|
@ -209,6 +209,13 @@ ply_entry_remove_bullet (ply_entry_t *entry)
|
|||
ply_entry_draw (entry);
|
||||
}
|
||||
|
||||
void
|
||||
ply_entry_remove_all_bullets (ply_entry_t *entry)
|
||||
{
|
||||
entry->number_of_bullets = 0;
|
||||
ply_entry_draw (entry);
|
||||
}
|
||||
|
||||
void
|
||||
ply_entry_show (ply_entry_t *entry,
|
||||
ply_event_loop_t *loop,
|
||||
|
|
|
|||
|
|
@ -51,6 +51,7 @@ long ply_entry_get_height (ply_entry_t *entry);
|
|||
|
||||
void ply_entry_add_bullet (ply_entry_t *entry);
|
||||
void ply_entry_remove_bullet (ply_entry_t *entry);
|
||||
void ply_entry_remove_all_bullets (ply_entry_t *entry);
|
||||
#endif
|
||||
|
||||
#endif /* PLY_ENTRY_H */
|
||||
|
|
|
|||
|
|
@ -245,6 +245,7 @@ on_enter (ply_boot_splash_plugin_t *plugin,
|
|||
plugin->pending_password_answer = NULL;
|
||||
|
||||
ply_entry_hide (plugin->entry);
|
||||
ply_entry_remove_all_bullets (plugin->entry);
|
||||
start_animation (plugin);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue