Skip to content

Commit

Permalink
Fix TabContainer not redrawing after toggling tab icon
Browse files Browse the repository at this point in the history
  • Loading branch information
timothyqiu committed Apr 20, 2024
1 parent 4a01602 commit fd14ba3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions scene/gui/tab_container.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit fd14ba3

Please sign in to comment.