Explorar o código

Merge pull request #50586 from pycbouh/editor-theme-type-clear

Clear the theme type filter/name on each dialog popup
Rémi Verschelde %!s(int64=4) %!d(string=hai) anos
pai
achega
a5c62edc14
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      editor/plugins/theme_editor_plugin.cpp

+ 1 - 0
editor/plugins/theme_editor_plugin.cpp

@@ -2326,6 +2326,7 @@ void ThemeTypeEditor::_list_type_selected(int p_index) {
 }
 }
 
 
 void ThemeTypeEditor::_add_type_button_cbk() {
 void ThemeTypeEditor::_add_type_button_cbk() {
+	add_type_filter->clear();
 	add_type_dialog->popup_centered(Size2(560, 420) * EDSCALE);
 	add_type_dialog->popup_centered(Size2(560, 420) * EDSCALE);
 	add_type_filter->grab_focus();
 	add_type_filter->grab_focus();
 }
 }