### Godot version

3.5.2.stable, 4.0.1.stable

### System information

Arch Linux

### Issue description

When the `Show Hidden Files` property is enabled in the Editor Settings:
![image](https://user-images.githubusercontent.com/6501975/226908540-8e70e520-3dcd-46e4-beaf-103ac176c1de.png)
Any `FileDialog` nodes from the project will inherit this setting, and their `Show Hidden Files` property is set to true everytime the scene is re-opened:

https://user-images.githubusercontent.com/6501975/226909135-a8fafdf7-ca36-40aa-b69a-a7baf2d7ae4f.mp4


This occurs on 3.5.2 as well.

### Steps to reproduce

- Enable `Show Hidden Files` property in the Editor Settings:
    - Reload Godot for the bug to occur
- Create a FileDialog node, and set it's `Show Hidden Files` property to false
- Save and close the scene, and reopen it
- The `Show Hidden Files` property is reset to true.

### Minimal reproduction project

N/A
}
	}
	file->set_file_mode(EditorFileDialog::FILE_MODE_SAVE_FILE);
	saving_resource = p_resource;
	current_menu_option = RESOURCE_SAVE_AS;
	List<String> extensions;
	Ref<PackedScene> sd = memnew(PackedScene);
	ResourceSaver::get_recognized_extensions(p_resource, &extensions);
	file->clear_filters();
	List<String> preferred;
	for (const String &E : extensions) {
		if (p_resource->is_class("Script") && (E == "tres" || E == "res")) {
			
			continue;
		}
		file->add_filter("*." + E, E.to_upper());
		preferred.push_back(E);
	}
	
	List<String>::Element *res_element = preferred.find("res");
	if (res_element) {
		preferred.move_to_back(res_element);
	}
	
	List<String>::Element *tres_element = preferred.find("tres");
	if (tres_element) {
		preferred.move_to_front(tres_element);
	}
	if (!p_at_path.is_empty()) {
		file->set_current_dir(p_at_path);