1
0
Fork 0

Merge pull request #106254 from chsoen/fix-105582

Change Selected value for OptionButton when last item is deleted.
This commit is contained in:
Thaddeus Crews 2025-05-26 11:24:24 -05:00
commit 5186987dde
No known key found for this signature in database
GPG Key ID: 8C6E5FEB5FC03CCC
1 changed files with 4 additions and 0 deletions

View File

@ -314,6 +314,10 @@ void OptionButton::set_item_count(int p_count) {
return;
}
if (current > p_count - 1) {
_select(p_count - 1, false);
}
popup->set_item_count(p_count);
if (p_count > count_old) {