mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 07:17:42 -05:00
Merge pull request #2362 from AlexHolly/update-scene-tab-fix
[UI-FIX] - Update scene tabs on save
This commit is contained in:
@@ -740,10 +740,18 @@ int PopupMenu::find_item_by_accelerator(uint32_t p_accel) const {
|
||||
|
||||
void PopupMenu::activate_item(int p_item) {
|
||||
|
||||
|
||||
ERR_FAIL_INDEX(p_item,items.size());
|
||||
ERR_FAIL_COND(items[p_item].separator);
|
||||
emit_signal("item_pressed",items[p_item].ID);
|
||||
|
||||
//hide all parent PopupMenue's
|
||||
Node *next = get_parent();
|
||||
PopupMenu *pop = next->cast_to<PopupMenu>();
|
||||
while (pop) {
|
||||
pop->hide();
|
||||
next = next->get_parent();
|
||||
pop = next->cast_to<PopupMenu>();
|
||||
}
|
||||
hide();
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user