-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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
Add deprecation notice to a duplicate method of class Window
#83014
Add deprecation notice to a duplicate method of class Window
#83014
Conversation
Please squash the commits into a single one as described in the PR-workflow |
1bd5baf
to
b6ae4ba
Compare
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.
Code looks correct.
Question is, if the linked issue is enough in order to justify this deprecation.
Given that there is a
So yeah I'm not sure what to do here. CC @bruvzg |
If we end up deeming both of these methods useful, how about making one of them an alias for the other? |
Yes that's a good idea. And this can be pointed out in both their description, linking to the other method using the Additionally deprecating could still be an option though, but I'd like to have @bruvzg's input on this. |
b6ae4ba
to
06534f8
Compare
Thanks! |
Window
using an alias #87093.This pull request adds a deprecation warning to the
Window::move_to_foreground()
method, as internally it contains the same code as theWindow::grab_focus()
method.In a future version of Godot (4.3? 4.4? 5.x?) said method ought to be removed, however, to maintain compatibility a deprecation warning should suffice for now.
Note: If this is not the right way to purge duplicates from the codebase I am more than willing to re-do it once I've been shown the proper way.