Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Project Dialog Removing Home Dir. from Project Path #101609

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

DubiousDuck
Copy link
Contributor

Fixes #101528

Code changes are made in the editor/project_manager/project_dialog.cpp file.

Since the error is only an issue when the home directory is removed by the script, I added an if statement to check if the target path is equal to the home directory (or the documents directory). The script then only removes the last file path if the path is not.

Since the same if statement is also used in _validate_path(), I extracted the statement and created a separate boolean function _is_path_home_or_doc_dir(const String &p_path).

Please let me know if looks good. Thanks!

@Grublady
Copy link
Contributor

I believe this would be superseded by #95262 if that gets merged

@DubiousDuck
Copy link
Contributor Author

DubiousDuck commented Jan 17, 2025

Oh yeah seems like it. I will make the necessary changes (if at all needed) to this commit if the other one gets merged

@Repiteo Repiteo modified the milestones: 4.4, 4.5 Feb 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error when creating a new project with specific steps (Create Folder manipulation)
4 participants