aboutsummaryrefslogtreecommitdiff
path: root/editor/editor_help.cpp
diff options
context:
space:
mode:
authortoger52017-08-30 01:03:13 +0200
committertoger52017-08-30 21:47:09 +0200
commit7793bfc544deb6517ca68c3e295eaba27bf74910 (patch)
tree4f530ed2d100db352ae60f2893a437766cb8f750 /editor/editor_help.cpp
parent97d7d84cac161e5cad110ab0edc3b7ee7d9a20a4 (diff)
downloadgodot-7793bfc544deb6517ca68c3e295eaba27bf74910.tar.gz
godot-7793bfc544deb6517ca68c3e295eaba27bf74910.tar.zst
godot-7793bfc544deb6517ca68c3e295eaba27bf74910.zip
Diffstat (limited to 'editor/editor_help.cpp')
-rw-r--r--editor/editor_help.cpp14
1 files changed, 11 insertions, 3 deletions
diff --git a/editor/editor_help.cpp b/editor/editor_help.cpp
index c7c3a8868..0e22f0d38 100644
--- a/editor/editor_help.cpp
+++ b/editor/editor_help.cpp
@@ -263,19 +263,22 @@ void EditorHelpSearch::_notification(int p_what) {
if (p_what == NOTIFICATION_ENTER_TREE) {
+ //_update_icons
search_box->add_icon_override("right_icon", get_icon("Search", "EditorIcons"));
connect("confirmed", this, "_confirmed");
_update_search();
- }
-
- if (p_what == NOTIFICATION_VISIBILITY_CHANGED) {
+ } else if (p_what == NOTIFICATION_VISIBILITY_CHANGED) {
if (is_visible_in_tree()) {
search_box->call_deferred("grab_focus"); // still not visible
search_box->select_all();
}
+ } else if (p_what == EditorSettings::NOTIFICATION_EDITOR_SETTINGS_CHANGED) {
+
+ //_update_icons
+ search_box->add_icon_override("right_icon", get_icon("Search", "EditorIcons"));
}
}
@@ -385,6 +388,7 @@ void EditorHelpIndex::_notification(int p_what) {
if (p_what == NOTIFICATION_ENTER_TREE) {
+ //_update_icons
search_box->add_icon_override("right_icon", get_icon("Search", "EditorIcons"));
_update_class_list();
@@ -393,6 +397,10 @@ void EditorHelpIndex::_notification(int p_what) {
} else if (p_what == NOTIFICATION_POST_POPUP) {
search_box->call_deferred("grab_focus");
+ } else if (p_what == EditorSettings::NOTIFICATION_EDITOR_SETTINGS_CHANGED) {
+
+ //_update_icons
+ search_box->add_icon_override("right_icon", get_icon("Search", "EditorIcons"));
}
}