Prechádzať zdrojové kódy

fix #43695 by revert part of #41576
Note that #42109 already reverted the change of MenuButton,
and actually fixed #43695.
As a result, this commit only reverts the change to LinkButton,
in order to prevent unpredictable consequences.

FIF15 4 rokov pred
rodič
commit
96fb9eeca4
1 zmenil súbory, kde vykonal 1 pridanie a 0 odobranie
  1. 1 0
      scene/gui/link_button.cpp

+ 1 - 0
scene/gui/link_button.cpp

@@ -295,5 +295,6 @@ void LinkButton::_bind_methods() {
 LinkButton::LinkButton() {
 	text_buf.instance();
 	underline_mode = UNDERLINE_MODE_ALWAYS;
+	set_focus_mode(FOCUS_NONE);
 	set_default_cursor_shape(CURSOR_POINTING_HAND);
 }