From 3b0ebb3a8219ccdc876cad2b0e2dc140a10c2105 Mon Sep 17 00:00:00 2001 From: Alexei Anoshenko Date: Mon, 20 Jun 2022 15:33:46 +0300 Subject: [PATCH] Bug fixing --- tabsLayout.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tabsLayout.go b/tabsLayout.go index d1e4535..e4e56dc 100644 --- a/tabsLayout.go +++ b/tabsLayout.go @@ -564,7 +564,7 @@ func (tabsLayout *tabsLayoutData) ListItem(index int, session Session) View { views := []View{} page := tabsLayout.views[index] - if icon, ok := stringProperty(page, Icon, session); ok && icon != "" { + if icon, ok := imageProperty(page, Icon, session); ok && icon != "" { views = append(views, NewImageView(session, Params{ Source: icon, Row: 0, @@ -803,7 +803,7 @@ func (tabsLayout *tabsLayoutData) htmlSubviews(self View, buffer *strings.Builde } for n, view := range tabsLayout.views { - icon, _ := stringProperty(view, Icon, tabsLayout.session) + icon, _ := imageProperty(view, Icon, tabsLayout.session) title, _ := stringProperty(view, Title, tabsLayout.session) if !notTranslate { title, _ = tabsLayout.Session().GetString(title)