Browse Source

Add missing `TRANSLATION_CHANGED` notifications.

Pāvels Nadtočajevs 3 tháng trước cách đây
mục cha
commit
1d33693e0d
2 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 1 0
      scene/gui/menu_button.cpp
  2. 1 0
      scene/gui/popup.cpp

+ 1 - 0
scene/gui/menu_button.cpp

@@ -134,6 +134,7 @@ void MenuButton::_notification(int p_what) {
 			DisplayServer::get_singleton()->accessibility_update_set_popup_type(ae, DisplayServer::AccessibilityPopupType::POPUP_MENU);
 		} break;
 
+		case NOTIFICATION_TRANSLATION_CHANGED:
 		case NOTIFICATION_LAYOUT_DIRECTION_CHANGED: {
 			popup->set_layout_direction((Window::LayoutDirection)get_layout_direction());
 		} break;

+ 1 - 0
scene/gui/popup.cpp

@@ -387,6 +387,7 @@ void PopupPanel::_notification(int p_what) {
 #endif
 		} break;
 
+		case Control::NOTIFICATION_TRANSLATION_CHANGED:
 		case Control::NOTIFICATION_LAYOUT_DIRECTION_CHANGED: {
 			if (is_visible()) {
 				_update_shadow_offsets();