From a3b23f6b6742bf5e3484fd0aa028ece2f61d2ea3 Mon Sep 17 00:00:00 2001 From: Rindbee Date: Sat, 28 May 2022 12:54:45 +0800 Subject: [PATCH] Reset buttons_visible to false while tabs is empty in TabBar::_update_cache --- scene/gui/tab_bar.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/scene/gui/tab_bar.cpp b/scene/gui/tab_bar.cpp index b96ba0ebf92..fec8d11befb 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; }