From 8f37bc5015890b5101d884a55c7aaa25f74c964d Mon Sep 17 00:00:00 2001 From: Chris Waldon Date: Wed, 30 Nov 2022 16:26:13 -0500 Subject: [PATCH] cmd/rosebud: use new form as transaction editor Signed-off-by: Chris Waldon --- cmd/rosebud/main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/rosebud/main.go b/cmd/rosebud/main.go index 9c5de75..76463e2 100644 --- a/cmd/rosebud/main.go +++ b/cmd/rosebud/main.go @@ -99,7 +99,7 @@ type UI struct { BalanceList widget.List AccountRegistry Tree *AccountTreeNode - TxEditor appwidget.TxEditor + TxEditor appwidget.TxForm } type AccountState struct { @@ -324,10 +324,10 @@ func (u *UI) layoutTransactions(gtx C) D { switch e := e.(type) { case appwidget.SuggestionRequestEvent[string]: suggestions := fuzzy.FindFold(e.Text, maps.Keys(u.AccountRegistry.elements)) - u.TxEditor.SetSuggestions(suggestions) + u.TxEditor.SetAccountSuggestions(suggestions) } } - return apptheme.TxEditor(u.Theme, &u.TxEditor, "Account name").Layout(gtx) + return apptheme.TxForm(u.Theme, &u.TxEditor).Layout(gtx) }), layout.Flexed(1, func(gtx C) D { return list.Layout(gtx, len(u.Txs), func(gtx C, index int) D { -- 2.45.2