Skip to content

Commit

Permalink
Merge pull request #28 from 98teg/fix-root-subfolder
Browse files Browse the repository at this point in the history
Fix setting root subfolder from the editor
  • Loading branch information
98teg committed Dec 3, 2023
2 parents 0009bbf + 6c5de0e commit 71ff74b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/native_file_dialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -215,9 +215,8 @@ NativeFileDialog::Access NativeFileDialog::get_access() const {
}

void NativeFileDialog::set_root_subfolder(const String &p_root) {
ERR_FAIL_COND_MSG(!DirAccess::dir_exists_absolute(get_root_string() + p_root), "root_subfolder must be an existing sub-directory.");

root_subfolder = p_root;
ERR_FAIL_COND_MSG(!DirAccess::dir_exists_absolute(get_root_string() + p_root), "root_subfolder must be an existing sub-directory.");
}

String NativeFileDialog::get_root_subfolder() const {
Expand Down

0 comments on commit 71ff74b

Please sign in to comment.