You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Allow empty replacement texts in the Find in Files replace dialog
This closes #29026.
(cherry picked from commit a411067829)
This commit is contained in:
committed by
Rémi Verschelde
parent
14587802f9
commit
665c00eb58
@@ -751,7 +751,6 @@ void FindInFilesPanel::_on_replace_text_changed(String text) {
|
||||
void FindInFilesPanel::_on_replace_all_clicked() {
|
||||
|
||||
String replace_text = get_replace_text();
|
||||
ERR_FAIL_COND(replace_text.empty());
|
||||
|
||||
PoolStringArray modified_files;
|
||||
|
||||
@@ -887,7 +886,7 @@ String FindInFilesPanel::get_replace_text() {
|
||||
void FindInFilesPanel::update_replace_buttons() {
|
||||
|
||||
String text = get_replace_text();
|
||||
bool disabled = text.empty() || _finder->is_searching();
|
||||
bool disabled = _finder->is_searching();
|
||||
|
||||
_replace_all_button->set_disabled(disabled);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user