Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
etorth committed Nov 20, 2024
1 parent 66fbbf4 commit 589778e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions client/src/itemflex.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ class ItemFlex: public Widget
, m_hbox(argHBox)
{
for(auto [widget, autoDelete]: argChildList){
appendItem(widget, autoDelete);
addChild(widget, autoDelete);
}
}

public:
void appendItem(Widget *argWidget, bool argAutoDelete)
void addChild(Widget *argWidget, bool argAutoDelete) override
{
m_origChildList.push_back(argWidget);
if(m_hbox){
Expand Down
2 changes: 1 addition & 1 deletion client/src/menuboard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ void MenuBoard::appendMenu(Widget *argWidget, bool argAddSeparator, bool argAuto
}

m_itemList.emplace_back(argWidget, argAddSeparator);
m_canvas.appendItem((new Widget
m_canvas.addChild((new Widget
{
DIR_UPLEFT, // ignore
0,
Expand Down

0 comments on commit 589778e

Please sign in to comment.