Browse Source

Fix new Node dialog Create button behavior

Added a one-liner to update the Create button disabled state when
selecting an item from the search results list.

Fixes #17265, long live the Realm!
Ivan Vodopiviz 7 năm trước cách đây
mục cha
commit
68a4241131
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      editor/create_dialog.cpp

+ 2 - 0
editor/create_dialog.cpp

@@ -476,6 +476,8 @@ void CreateDialog::_item_selected() {
 		return;
 
 	help_bit->set_text(EditorHelp::get_doc_data()->class_list[name].brief_description);
+
+	get_ok()->set_disabled(false);
 }
 
 void CreateDialog::_favorite_toggled() {