mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-28 16:50:16 +01:00
tui: prefill a secret in the entry if we have a value
(cherry picked from commit a1536fe3d1)
This commit is contained in:
parent
3f2dd0b2a9
commit
71cfa4fb79
1 changed files with 2 additions and 0 deletions
|
|
@ -154,6 +154,8 @@ nmt_password_dialog_constructed (GObject *object)
|
|||
if (secret->password)
|
||||
flags |= NMT_NEWT_ENTRY_PASSWORD;
|
||||
widget = nmt_newt_entry_new (30, flags);
|
||||
if (secret->value)
|
||||
nmt_newt_entry_set_text (NMT_NEWT_ENTRY (widget), secret->value);
|
||||
nmt_newt_grid_add (secret_grid, widget, 1, i);
|
||||
g_ptr_array_add (priv->entries, widget);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue