diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-05-31 12:19:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-31 12:19:36 +0200 |
commit | cea54a0357322935e4c872f0ef46cd0a443483df (patch) | |
tree | 3aae80b43fb02fa14a34060464c98179c41af72d | |
parent | a837accc5d058e4eec29f4d854da8cb9f55a97cf (diff) | |
parent | a3b23f6b6742bf5e3484fd0aa028ece2f61d2ea3 (diff) |
Merge pull request #61489 from Rindbee/reset-buttons_visible-to-false-if-tabs-is-empty
Reset buttons_visible to false while tabs is empty in TabBar::_update_cache
-rw-r--r-- | scene/gui/tab_bar.cpp | 1 |
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; } |