mirror of
https://gitlab.freedesktop.org/plymouth/plymouth.git
synced 2026-05-05 18:08:01 +02:00
respond w/ "" if user hits esc to password prompt
This is so when we load the next plugin it won't get confused.
This commit is contained in:
parent
5534d814aa
commit
e962a0bbd9
4 changed files with 24 additions and 0 deletions
|
|
@ -205,6 +205,12 @@ hide_splash_screen (ply_boot_splash_plugin_t *plugin,
|
|||
|
||||
ply_trace ("hiding splash screen");
|
||||
|
||||
if (plugin->pending_password_answer != NULL)
|
||||
{
|
||||
ply_answer_with_string (plugin->pending_password_answer, "");
|
||||
plugin->pending_password_answer = NULL;
|
||||
}
|
||||
|
||||
ply_window_set_keyboard_input_handler (window, NULL, NULL);
|
||||
ply_window_set_backspace_handler (window, NULL, NULL);
|
||||
ply_window_set_enter_handler (window, NULL, NULL);
|
||||
|
|
|
|||
|
|
@ -578,6 +578,12 @@ hide_splash_screen (ply_boot_splash_plugin_t *plugin,
|
|||
{
|
||||
assert (plugin != NULL);
|
||||
|
||||
if (plugin->pending_password_answer != NULL)
|
||||
{
|
||||
ply_answer_with_string (plugin->pending_password_answer, "");
|
||||
plugin->pending_password_answer = NULL;
|
||||
}
|
||||
|
||||
ply_window_set_keyboard_input_handler (window, NULL, NULL);
|
||||
ply_window_set_backspace_handler (window, NULL, NULL);
|
||||
ply_window_set_enter_handler (window, NULL, NULL);
|
||||
|
|
|
|||
|
|
@ -387,6 +387,12 @@ hide_splash_screen (ply_boot_splash_plugin_t *plugin,
|
|||
{
|
||||
assert (plugin != NULL);
|
||||
|
||||
if (plugin->pending_password_answer != NULL)
|
||||
{
|
||||
ply_answer_with_string (plugin->pending_password_answer, "");
|
||||
plugin->pending_password_answer = NULL;
|
||||
}
|
||||
|
||||
ply_window_set_keyboard_input_handler (window, NULL, NULL);
|
||||
ply_window_set_backspace_handler (window, NULL, NULL);
|
||||
ply_window_set_enter_handler (window, NULL, NULL);
|
||||
|
|
|
|||
|
|
@ -253,6 +253,12 @@ hide_splash_screen (ply_boot_splash_plugin_t *plugin,
|
|||
|
||||
ply_trace ("hiding splash screen");
|
||||
|
||||
if (plugin->pending_password_answer != NULL)
|
||||
{
|
||||
ply_answer_with_string (plugin->pending_password_answer, "");
|
||||
plugin->pending_password_answer = NULL;
|
||||
}
|
||||
|
||||
ply_window_set_keyboard_input_handler (window, NULL, NULL);
|
||||
ply_window_set_backspace_handler (window, NULL, NULL);
|
||||
ply_window_set_enter_handler (window, NULL, NULL);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue