mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Use radio-button-like menu entries where applicable
This commit is contained in:
@@ -118,7 +118,7 @@ void OptionButton::add_icon_item(const Ref<Texture> &p_icon, const String &p_lab
|
||||
}
|
||||
void OptionButton::add_item(const String &p_label, int p_ID) {
|
||||
|
||||
popup->add_check_item(p_label, p_ID);
|
||||
popup->add_radio_check_item(p_label, p_ID);
|
||||
if (popup->get_item_count() == 1)
|
||||
select(0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user