Skip to content

Commit f4ed584

Browse files
committed
Removes problematic if statement.
This removes the problematic if statement in FileDialog, which was making the filename_filter box permanently un-editable.
1 parent 14f519f commit f4ed584

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

scene/gui/file_dialog.cpp

-5
Original file line numberDiff line numberDiff line change
@@ -1095,11 +1095,6 @@ void FileDialog::clear_filename_filter() {
10951095

10961096
void FileDialog::update_filename_filter_gui() {
10971097
filename_filter_box->set_visible(show_filename_filter);
1098-
// HACK: Using the opposite state for show_filename_filter does not work.
1099-
// Causes the text-box to be uneditable as it is constantly reset.
1100-
if (show_filename_filter) {
1101-
file_name_filter.clear();
1102-
}
11031098
if (filename_filter->get_text() == file_name_filter) {
11041099
return;
11051100
}

0 commit comments

Comments
 (0)