-
-
Notifications
You must be signed in to change notification settings - Fork 22k
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
Improved drad&drop files on project manager #5993
Improved drad&drop files on project manager #5993
Conversation
I'm not sure, what to do with multiple_folders vector if user cancel scan, vector keep values, and only next dnd clear previous values |
scan_dir->popup_centered_ratio(); | ||
} | ||
|
||
void ProjectManager::_scan_multiple_folders() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldn't it be cleaner/simpler to just pass StringArray p_folders
as argument here and drop the member var multiple_folders
altogether?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
f0f495b
to
bee2091
Compare
Fixed all and squashed in one commit |
@@ -1332,8 +1367,13 @@ ProjectManager::ProjectManager() { | |||
multi_run_ask = memnew( ConfirmationDialog ); | |||
multi_run_ask->get_ok()->set_text(TTR("Run")); | |||
multi_run_ask->get_ok()->connect("pressed", this, "_run_project_confirm"); | |||
|
|||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Beware of adding trailing spaces ;)
This has been deprecated by godotengine#5993
Improved dnd in project manager. Dragged any file from project folder or single project folder autoimport it, otherwise confirm scan all dragger folders.
Regarding #5981, @akien-mga please review.