summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-02-09 09:38:39 +0100
committerGitHub <noreply@github.com>2022-02-09 09:38:39 +0100
commit196801fc64026ab7daee44994ee92bc6eb9faae4 (patch)
treeea3c8f4a8f67f3699991d3737c72fc4e1fed2784 /scene
parent3cb9dc78d6001af550f125bb6f8b7da27a291add (diff)
parentef81dc1831db37c104091b5f7edf8102c8d72270 (diff)
Merge pull request #57837 from YeldhamDev/that_was_pointless
Diffstat (limited to 'scene')
-rw-r--r--scene/gui/popup_menu.cpp21
1 files changed, 1 insertions, 20 deletions
diff --git a/scene/gui/popup_menu.cpp b/scene/gui/popup_menu.cpp
index b26b9d1225..61a5fb999c 100644
--- a/scene/gui/popup_menu.cpp
+++ b/scene/gui/popup_menu.cpp
@@ -736,26 +736,7 @@ void PopupMenu::_notification(int p_what) {
}
} break;
case NOTIFICATION_THEME_CHANGED:
- case Control::NOTIFICATION_LAYOUT_DIRECTION_CHANGED: {
- // Pass the layout direction to all submenus.
- for (int i = 0; i < items.size(); i++) {
- if (items[i].submenu.is_empty()) {
- continue;
- }
-
- Node *n = get_node(items[i].submenu);
- if (!n) {
- continue;
- }
-
- PopupMenu *pm = Object::cast_to<PopupMenu>(n);
- if (pm) {
- pm->set_layout_direction(get_layout_direction());
- }
- }
-
- [[fallthrough]];
- }
+ case Control::NOTIFICATION_LAYOUT_DIRECTION_CHANGED:
case NOTIFICATION_TRANSLATION_CHANGED: {
for (int i = 0; i < items.size(); i++) {
items.write[i].xl_text = atr(items[i].text);