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

BaseButton property "enabled_focus_mode" is redundant #41529

Closed
FIF15 opened this issue Aug 26, 2020 · 4 comments · Fixed by #41576
Closed

BaseButton property "enabled_focus_mode" is redundant #41529

FIF15 opened this issue Aug 26, 2020 · 4 comments · Fixed by #41576

Comments

@FIF15
Copy link
Contributor

FIF15 commented Aug 26, 2020

Godot version:

3.2

OS/device including version:

no specific

Issue description:

#4300 added a prop to BaseButton called "enabled_focus_mode" for setting the focus mode for enabled buttons. At that time, buttons would set focus mode to FOCUS_NONE on disabling and set to "enabled_focus_mode" when enabling. However, #16152 removed above logic, but leaving the prop "enabled_focus_mode" there.

Currently, this prop is really confusing that it would not have any effect when calling "BaseButton::set_enabled_focus_mode" on a disabled button without any warning, and has the exactly same behavior as the "Control::set_focus_mode" on an enabled button.

@Calinou
Copy link
Member

Calinou commented Aug 26, 2020

Removing a property technically breaks the API, so we can remove it in the master branch but not in the 3.2 branch. In the 3.2 branch, we can deprecate it by making it a no-op still: #41471

@Calinou Calinou added this to the 4.0 milestone Aug 26, 2020
@FIF15
Copy link
Contributor Author

FIF15 commented Aug 27, 2020

Removing a property technically breaks the API, so we can remove it in the master branch but not in the 3.2 branch. In the 3.2 branch, we can deprecate it by making it a no-op still: #41471

Sounds good. Should I make these changes or someone would do that?

@Calinou
Copy link
Member

Calinou commented Aug 27, 2020

@FIF15 Feel free to open a pull request to do that 🙂

Make sure to update the associated documentation in the pull request.

@akien-mga
Copy link
Member

I agree with the proposal, #16152 did remove the only use of enabled_focus_mode so currently this property is a no-op. It doesn't affect anything.

akien-mga pushed a commit to FIF15/godot that referenced this issue Oct 13, 2020
FIF15 added a commit to FIF15/godot that referenced this issue Oct 16, 2020
MarcusElg pushed a commit to MarcusElg/godot that referenced this issue Oct 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants