Skip to content

Commit

Permalink
selection_box
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Gagis committed Feb 22, 2024
1 parent ccf232b commit eb03113
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/app/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -830,11 +830,11 @@ class application : public ruisapp::application{

// dropdown
{
auto dds = c.get().try_get_widget_as<ruis::drop_down_box>("dropdownselector");
auto dds = c.get().try_get_widget_as<ruis::selection_box>("dropdownselector");
auto ddst = c.get().try_get_widget_as<ruis::text>("dropdownselector_selection");
auto ddstw = utki::make_weak(ddst);

dds->selection_handler = [ddstw](ruis::drop_down_box& dds){
dds->selection_handler = [ddstw](ruis::selection_box& dds){
if(auto t = ddstw.lock()){
std::stringstream ss;
ss << "index_" << dds.get_selection();
Expand Down

0 comments on commit eb03113

Please sign in to comment.