mirror of
https://github.com/godotengine/godot.git
synced 2025-01-26 04:22:30 -05:00
Fix ProgressBar's minimum size not updating when toggling its percent_visible
This commit is contained in:
parent
c87f9fe4ce
commit
c10304415f
1 changed files with 4 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue