From edec78785d043a7f42718f14232ba50c1920a38d Mon Sep 17 00:00:00 2001 From: Relintai Date: Sat, 9 Sep 2023 02:26:36 +0200 Subject: [PATCH] The match case option is on by default now when searching in the current file and in files in the editor. --- editor/find_in_files.cpp | 1 + editor_modules/editor_code_editor/editor_find_replace_bar.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/editor/find_in_files.cpp b/editor/find_in_files.cpp index 9f0f2c748..331822f5a 100644 --- a/editor/find_in_files.cpp +++ b/editor/find_in_files.cpp @@ -364,6 +364,7 @@ FindInFilesDialog::FindInFilesDialog() { _match_case_checkbox = memnew(CheckBox); _match_case_checkbox->set_text(TTR("Match Case")); + _match_case_checkbox->set_pressed(true); hbc->add_child(_match_case_checkbox); gc->add_child(hbc); diff --git a/editor_modules/editor_code_editor/editor_find_replace_bar.cpp b/editor_modules/editor_code_editor/editor_find_replace_bar.cpp index d0d671728..4caba30e2 100644 --- a/editor_modules/editor_code_editor/editor_find_replace_bar.cpp +++ b/editor_modules/editor_code_editor/editor_find_replace_bar.cpp @@ -615,6 +615,7 @@ EditorFindReplaceBar::EditorFindReplaceBar() { hbc_option_search->add_child(case_sensitive); case_sensitive->set_text(TTR("Match Case")); case_sensitive->set_focus_mode(FOCUS_NONE); + case_sensitive->set_pressed(true); case_sensitive->connect("toggled", this, "_search_options_changed"); whole_words = memnew(CheckBox);