Skip to content

Commit

Permalink
print description instead of name for ParamBool widget
Browse files Browse the repository at this point in the history
  • Loading branch information
Ylannl committed Apr 8, 2020
1 parent a305b07 commit 835eb85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/geoflow/gui/parameter_widgets.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ namespace geoflow {
}
} else if( auto valptr = std::get_if<ParamBool>(&param) ) {
if (valptr->visible()) {
changed = ImGui::Checkbox(name.c_str(), &valptr->get());
changed = ImGui::Checkbox(valptr->get_label().c_str(), &valptr->get());
}
} else if( auto valptr = std::get_if<ParamStrMap>(&param) ) {
if (valptr->visible()) {
Expand Down

0 comments on commit 835eb85

Please sign in to comment.