Fix TabContainer not redrawing after toggling tab icon
This commit is contained in:
parent
4a0160241f
commit
fd14ba34d1
1 changed files with 1 additions and 3 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue