summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-06-25 14:07:32 +0200
committerGitHub <noreply@github.com>2022-06-25 14:07:32 +0200
commitb26d924f225d5181219066c4b080cc41ed349179 (patch)
tree749ed7580669ce735541b25ac2b5d259d79b1103 /scene
parentdd3de622d8d32400955b77564be3442f77e3a204 (diff)
parentc10304415fbdaa079c817a37c242055e79ef4cc8 (diff)
Merge pull request #62394 from Rindbee/fix-toggling-percent_visible-in-ProgressBar
Fix ProgressBar's minimum size not updating when toggling its percent_visible
Diffstat (limited to 'scene')
-rw-r--r--scene/gui/progress_bar.cpp4
1 files changed, 4 insertions, 0 deletions
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();
}