Skip to content

Commit 58103e8

Browse files
committed
UI button don't show text if text is empty
1 parent b0e1559 commit 58103e8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

OS/UI/Component/UIButton.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ class UIButton : public UIComponent {
9090
MatrixOS::KeyPad::Clear();
9191
return true;
9292
}
93-
else
93+
else if(GetName() != "")
9494
{
9595
MatrixOS::UIUtility::TextScroll(GetName(), GetColor());
9696
return true;

0 commit comments

Comments
 (0)