mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-02 00:32:45 +03:00
feat(ui): handle bytes attr in CSimpleEditBox::LoadXML
This commit is contained in:
parent
76bc57edb5
commit
88eada90b2
@ -673,8 +673,11 @@ void CSimpleEditBox::LoadXML(XMLNode* node, CStatus* status) {
|
|||||||
if (bytesAttr && *bytesAttr) {
|
if (bytesAttr && *bytesAttr) {
|
||||||
int32_t bytes = SStrToInt(bytesAttr);
|
int32_t bytes = SStrToInt(bytesAttr);
|
||||||
|
|
||||||
// TODO
|
if (bytes <= 0) {
|
||||||
// - set some member of CSimpleEditBox
|
this->m_textLength = -1;
|
||||||
|
} else {
|
||||||
|
this->m_textLength = bytes - 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} else if (!SStrCmpI(child->GetName(), "HighlightColor", STORM_MAX_STR)) {
|
} else if (!SStrCmpI(child->GetName(), "HighlightColor", STORM_MAX_STR)) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user