mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
fix
This commit is contained in:
parent
cefa26b497
commit
d845aeb55f
1 changed files with 1 additions and 1 deletions
|
|
@ -387,7 +387,7 @@ static std::shared_ptr<UINode> read_button(
|
|||
|
||||
std::shared_ptr<Button> button;
|
||||
auto& elements = element.getElements();
|
||||
if (!elements.empty() && elements[0]->isText()) {
|
||||
if (!elements.empty() && !elements[0]->isText()) {
|
||||
auto inner = reader.readUINode(*elements.at(0));
|
||||
if (inner != nullptr) {
|
||||
button = std::make_shared<Button>(gui, inner, padding);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue