Merge pull request #90928 from timothyqiu/toggle-tab-icon-3.x

[3.x] Fix TabContainer not updating content rect after toggling tab icon
This commit is contained in:
lawnjelly 2024-04-21 19:29:38 +01:00 committed by GitHub
commit 36474d6142
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,6 @@
#include "tab_container.h"
#include "core/message_queue.h"
#include "scene/gui/box_container.h"
#include "scene/gui/label.h"
#include "scene/gui/texture_rect.h"
@ -874,6 +873,7 @@ void TabContainer::set_tab_icon(int p_tab, const Ref<Texture> &p_icon) {
Control *child = get_tab_control(p_tab);
ERR_FAIL_COND(!child);
child->set_meta("_tab_icon", p_icon);
_repaint();
update();
}
Ref<Texture> TabContainer::get_tab_icon(int p_tab) const {