Merge pull request #90942 from timothyqiu/toggle-tab-icon

Fix TabContainer not redrawing after toggling tab icon
This commit is contained in:
Rémi Verschelde 2024-04-22 12:53:39 +02:00
commit 4e391ea81e
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 1 additions and 3 deletions

View File

@ -30,9 +30,6 @@
#include "tab_container.h"
#include "scene/gui/box_container.h"
#include "scene/gui/label.h"
#include "scene/gui/texture_rect.h"
#include "scene/theme/theme_db.h"
int TabContainer::_get_tab_height() const {
@ -782,6 +779,7 @@ void TabContainer::set_tab_icon(int p_tab, const Ref<Texture2D> &p_icon) {
_update_margins();
_repaint();
queue_redraw();
}
Ref<Texture2D> TabContainer::get_tab_icon(int p_tab) const {