You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Rename internal Button icon to button_icon to match exposed methods
This commit is contained in:
@@ -66,9 +66,9 @@ void EditorMainScreen::_notification(int p_what) {
|
||||
Ref<Texture2D> icon = p_editor->get_icon();
|
||||
|
||||
if (icon.is_valid()) {
|
||||
tb->set_icon(icon);
|
||||
tb->set_button_icon(icon);
|
||||
} else if (has_theme_icon(p_editor->get_name(), EditorStringName(EditorIcons))) {
|
||||
tb->set_icon(get_theme_icon(p_editor->get_name(), EditorStringName(EditorIcons)));
|
||||
tb->set_button_icon(get_theme_icon(p_editor->get_name(), EditorStringName(EditorIcons)));
|
||||
}
|
||||
}
|
||||
} break;
|
||||
@@ -244,7 +244,7 @@ void EditorMainScreen::add_main_plugin(EditorPlugin *p_editor) {
|
||||
icon = get_editor_theme_icon(p_editor->get_name());
|
||||
}
|
||||
if (icon.is_valid()) {
|
||||
tb->set_icon(icon);
|
||||
tb->set_button_icon(icon);
|
||||
// Make sure the control is updated if the icon is reimported.
|
||||
icon->connect_changed(callable_mp((Control *)tb, &Control::update_minimum_size));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user