summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRindbee <idleman@yeah.net>2022-05-28 12:54:45 +0800
committerRindbee <idleman@yeah.net>2022-05-28 12:54:45 +0800
commita3b23f6b6742bf5e3484fd0aa028ece2f61d2ea3 (patch)
tree03541d335e5fe9ffa0b2af244078b2ba430056cd
parent1f690f197a4fb0809afb2f59bf78e4d3d89fd847 (diff)
Reset buttons_visible to false while tabs is empty in TabBar::_update_cache
-rw-r--r--scene/gui/tab_bar.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/gui/tab_bar.cpp b/scene/gui/tab_bar.cpp
index b96ba0ebf9..fec8d11bef 100644
--- a/scene/gui/tab_bar.cpp
+++ b/scene/gui/tab_bar.cpp
@@ -862,6 +862,7 @@ void TabBar::_update_hover() {
void TabBar::_update_cache() {
if (tabs.is_empty()) {
+ buttons_visible = false;
return;
}