From d45c07eb6a0955a24efec7bd915ba19746042778 Mon Sep 17 00:00:00 2001 From: Tim Culverhouse Date: Sun, 3 Jul 2022 10:11:12 -0500 Subject: uiconfig: use pointer references to uiConfig This patch changes references to uiConfig in function signatures and structs to be pointers. Signed-off-by: Tim Culverhouse Acked-by: Robin Jarry --- widgets/getpasswd.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'widgets/getpasswd.go') diff --git a/widgets/getpasswd.go b/widgets/getpasswd.go index 0a03f7dd..e4cf07b4 100644 --- a/widgets/getpasswd.go +++ b/widgets/getpasswd.go @@ -25,7 +25,7 @@ func NewGetPasswd(title string, prompt string, conf *config.AercConfig, title: title, prompt: prompt, conf: conf, - input: ui.NewTextInput("", conf.Ui).Password(true).Prompt("Password: "), + input: ui.NewTextInput("", &conf.Ui).Password(true).Prompt("Password: "), } getpasswd.input.OnInvalidate(func(_ ui.Drawable) { getpasswd.Invalidate() -- cgit