summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Franke <me@nathan.sh>2022-05-26 04:58:25 -0500
committerNathan Franke <me@nathan.sh>2022-06-23 18:20:00 -0500
commit085ec68dfe04f72e621e3ac3ac34602bba5e8620 (patch)
treed0e4d7d626404d2934c1c0c949c5f6ed5b364be5
parentecf187705eb59632cefa649b0f4b44dd3569c0fb (diff)
repaint tab container when changing tab visibility
-rw-r--r--scene/gui/tab_container.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/gui/tab_container.cpp b/scene/gui/tab_container.cpp
index 8299d73b68..fa929344d4 100644
--- a/scene/gui/tab_container.cpp
+++ b/scene/gui/tab_container.cpp
@@ -727,6 +727,7 @@ void TabContainer::set_tab_hidden(int p_tab, bool p_hidden) {
if (!get_clip_tabs()) {
update_minimum_size();
}
+ call_deferred(SNAME("_repaint"));
}
bool TabContainer::is_tab_hidden(int p_tab) const {