mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-11-21 16:37:20 +01:00
Fix TabContainer not updating content rect after toggling tab icon
This commit is contained in:
parent
8eaeba938b
commit
144e69dc2c
@ -31,7 +31,6 @@
|
||||
|
||||
#include "tab_container.h"
|
||||
|
||||
#include "core/object/message_queue.h"
|
||||
#include "scene/gui/box_container.h"
|
||||
#include "scene/gui/label.h"
|
||||
#include "scene/gui/popup.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 {
|
||||
|
Loading…
Reference in New Issue
Block a user