From c86269cf49556eaaec1012bef5e80ea06f2cfe19 Mon Sep 17 00:00:00 2001 From: Relintai Date: Wed, 6 Sep 2023 14:23:55 +0200 Subject: [PATCH] Hide the editor log search bar by default. --- editor/editor_log.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/editor/editor_log.cpp b/editor/editor_log.cpp index 880b39a00..cbd1ab4ff 100644 --- a/editor/editor_log.cpp +++ b/editor/editor_log.cpp @@ -436,6 +436,7 @@ EditorLog::EditorLog() { search_box->set_clear_button_enabled(true); search_box->set_visible(true); search_box->connect("text_changed", this, "_search_changed"); + search_box->hide(); vb_left->add_child(search_box); VBoxContainer *vb_right = memnew(VBoxContainer); @@ -484,7 +485,7 @@ EditorLog::EditorLog() { show_search_button->set_flat(true); show_search_button->set_focus_mode(FOCUS_NONE); show_search_button->set_toggle_mode(true); - show_search_button->set_pressed(true); + show_search_button->set_pressed(false); show_search_button->set_shortcut(ED_SHORTCUT("editor/open_search", TTR("Focus Search/Filter Bar"), KEY_MASK_CTRL | KEY_F)); //show_search_button->set_shortcut_context(this); show_search_button->connect("toggled", this, "_set_search_visible");