Skip to content

Commit ded8169

Browse files
committed
Fixed a typo in MenuComponent that accidentally used a constant as a
boolean value (technically still worked)
1 parent 23d8856 commit ded8169

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

es-core/src/components/MenuComponent.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class MenuComponent : public GuiComponent
2626
inline void addWithLabel(const std::string& label, const std::shared_ptr<GuiComponent>& comp, bool setCursorHere = false, bool invert_when_selected = true)
2727
{
2828
ComponentListRow row;
29-
row.addElement(std::make_shared<TextComponent>(mWindow, strToUpper(label), Font::get(FONT_SIZE_MEDIUM), 0x777777FF), ALIGN_CENTER);
29+
row.addElement(std::make_shared<TextComponent>(mWindow, strToUpper(label), Font::get(FONT_SIZE_MEDIUM), 0x777777FF), true);
3030
row.addElement(comp, false, invert_when_selected);
3131
addRow(row, setCursorHere);
3232
}

0 commit comments

Comments
 (0)