Skip to content

Commit

Permalink
GUI2/Menu Button: added getter for selected row config
Browse files Browse the repository at this point in the history
  • Loading branch information
Vultraz committed Feb 4, 2018
1 parent ae48811 commit 39069c1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/gui/widgets/menu_button.hpp
Expand Up @@ -92,6 +92,12 @@ class menu_button : public styled_widget, public selectable_item
return values_[selected_]["label"];
}

/** Returns the entire config object for the selected row. */
const ::config& get_value_config() const
{
return values_[selected_];
}

void set_keep_open(const bool keep_open)
{
keep_open_ = keep_open;
Expand Down

0 comments on commit 39069c1

Please sign in to comment.