From 17ba035c09e04304c6aa0db6fdd1ce8250faa167 Mon Sep 17 00:00:00 2001 From: anoshenko Date: Wed, 8 Dec 2021 18:26:46 +0300 Subject: [PATCH] Bug fixing Fixed ShowMenu error message --- popupUtils.go | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/popupUtils.go b/popupUtils.go index c44c895..8448daa 100644 --- a/popupUtils.go +++ b/popupUtils.go @@ -167,7 +167,19 @@ func ShowMenu(session Session, params Params) Popup { Orientation: TopDownOrientation, ListItemClickedEvent: data.itemClick, }) - data.popup = NewPopup(listView, params) + + popupParams := Params{} + for tag, value := range params { + switch tag { + case Items, PopupMenuResult: + // do nothing + + default: + popupParams[tag] = value + } + } + + data.popup = NewPopup(listView, popupParams) data.popup.Show() FocusView(listView) return data.popup