mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Hides special folders in FileDialog for macOS
This commit is contained in:
parent
80165210c3
commit
1998f78679
4 changed files with 18 additions and 1 deletions
|
|
@ -152,7 +152,7 @@ String DirAccessUnix::get_next() {
|
|||
_cisdir = (entry->d_type == DT_DIR);
|
||||
}
|
||||
|
||||
_cishidden = (fname != "." && fname != ".." && fname.begins_with("."));
|
||||
_cishidden = is_hidden(fname);
|
||||
|
||||
return fname;
|
||||
}
|
||||
|
|
@ -400,6 +400,10 @@ String DirAccessUnix::get_filesystem_type() const {
|
|||
return ""; //TODO this should be implemented
|
||||
}
|
||||
|
||||
bool DirAccessUnix::is_hidden(const String &p_name) {
|
||||
return p_name != "." && p_name != ".." && p_name.begins_with(".");
|
||||
}
|
||||
|
||||
DirAccessUnix::DirAccessUnix() {
|
||||
dir_stream = nullptr;
|
||||
_cisdir = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue