mirror of
https://github.com/godotengine/godot.git
synced 2025-10-25 18:54:43 +00:00
Style: clang-format: Disable AllowShortIfStatementsOnASingleLine
Part of #33027, also discussed in #29848. Enforcing the use of brackets even on single line statements would be preferred, but `clang-format` doesn't have this functionality yet.
This commit is contained in:
parent
03b13e0c69
commit
e956e80c1f
130 changed files with 967 additions and 511 deletions
|
|
@ -410,7 +410,8 @@ void FileDialog::_tree_item_activated() {
|
|||
void FileDialog::update_file_name() {
|
||||
int idx = filter->get_selected() - 1;
|
||||
if ((idx == -1 && filter->get_item_count() == 2) || (filter->get_item_count() > 2 && idx >= 0 && idx < filter->get_item_count() - 2)) {
|
||||
if (idx == -1) idx += 1;
|
||||
if (idx == -1)
|
||||
idx += 1;
|
||||
String filter_str = filters[idx];
|
||||
String file_str = file->get_text();
|
||||
String base_name = file_str.get_basename();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue