Skip to content

Commit

Permalink
Fix typo in dialog_class.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
dacap committed Apr 7, 2020
1 parent 60263f4 commit 8fe01b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/script/dialog_class.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ struct Dialog {
return nullptr;
}

void setLabelVisibilty(const char* id, bool visible) {
void setLabelVisibility(const char* id, bool visible) {
auto it = labelWidgets.find(id);
if (it != labelWidgets.end())
it->second->setVisible(visible);
Expand Down Expand Up @@ -743,7 +743,7 @@ int Dialog_modify(lua_State* L)
if (type != LUA_TNIL) {
bool state = lua_toboolean(L, -1);
widget->setVisible(state);
dlg->setLabelVisibilty(id, state);
dlg->setLabelVisibility(id, state);
relayout = true;
}
lua_pop(L, 1);
Expand Down

0 comments on commit 8fe01b4

Please sign in to comment.