forked from mbk-lab/rui_orig
2
0
Fork 0

Fixed "@..." text bug in EditView

This commit is contained in:
anoshenko 2021-11-17 12:47:14 +03:00
parent 07e1dd3799
commit 584983b818
1 changed files with 4 additions and 2 deletions

View File

@ -484,8 +484,10 @@ func GetText(view View, subviewID string) string {
view = ViewByID(view, subviewID) view = ViewByID(view, subviewID)
} }
if view != nil { if view != nil {
if text, ok := stringProperty(view, Text, view.Session()); ok { if value := view.getRaw(Text); value != nil {
return text if text, ok := value.(string); ok {
return text
}
} }
} }
return "" return ""