Bug fixing

This commit is contained in:
Alexei Anoshenko 2022-06-20 15:33:46 +03:00
parent 2eb1e383f2
commit 3b0ebb3a82
1 changed files with 2 additions and 2 deletions

View File

@ -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)