Merge pull request #62394 from Rindbee/fix-toggling-percent_visible-in-ProgressBar

Fix ProgressBar's minimum size not updating when toggling its percent_visible
This commit is contained in:
Rémi Verschelde 2022-06-25 14:07:32 +02:00 committed by GitHub
commit b26d924f22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();
}