Explorar o código

Fix focus behavior in the Add Item Type dialog of the Theme editor

Yuri Sizov %!s(int64=4) %!d(string=hai) anos
pai
achega
4bcdbf1280
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  1. 6 0
      editor/plugins/theme_editor_plugin.cpp

+ 6 - 0
editor/plugins/theme_editor_plugin.cpp

@@ -2015,6 +2015,12 @@ void ThemeTypeDialog::_notification(int p_what) {
 		case NOTIFICATION_THEME_CHANGED: {
 		case NOTIFICATION_THEME_CHANGED: {
 			_update_add_type_options();
 			_update_add_type_options();
 		} break;
 		} break;
+
+		case NOTIFICATION_VISIBILITY_CHANGED: {
+			if (is_visible()) {
+				add_type_filter->grab_focus();
+			}
+		} break;
 	}
 	}
 }
 }