From c10304415fbdaa079c817a37c242055e79ef4cc8 Mon Sep 17 00:00:00 2001 From: Rindbee Date: Sat, 25 Jun 2022 15:39:39 +0800 Subject: Fix ProgressBar's minimum size not updating when toggling its percent_visible --- scene/gui/progress_bar.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'scene') diff --git a/scene/gui/progress_bar.cpp b/scene/gui/progress_bar.cpp index f36682942f..80859e8eb9 100644 --- a/scene/gui/progress_bar.cpp +++ b/scene/gui/progress_bar.cpp @@ -126,7 +126,11 @@ int ProgressBar::get_fill_mode() { } void ProgressBar::set_percent_visible(bool p_visible) { + if (percent_visible == p_visible) { + return; + } percent_visible = p_visible; + update_minimum_size(); update(); } -- cgit v1.2.3