mirror of
https://github.com/whoahq/whoa.git
synced 2026-11-28 00:32:25 +03:00
feat(ui): handle bytes attr in CSimpleEditBox::LoadXML
This commit is contained in:
1 file changed
+5
-2
@@ -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)) {
|
||||||
|
|||||||
Reference in new issue
Block a user