diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-06-25 14:07:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-25 14:07:32 +0200 |
commit | b26d924f225d5181219066c4b080cc41ed349179 (patch) | |
tree | 749ed7580669ce735541b25ac2b5d259d79b1103 /scene | |
parent | dd3de622d8d32400955b77564be3442f77e3a204 (diff) | |
parent | c10304415fbdaa079c817a37c242055e79ef4cc8 (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.cpp | 4 |
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(); } |