godot
godot copied to clipboard
Fix wrong tab when TabContainer was not in tree
Fixes #109291
When testing this be sure to remove .godot/exported folder if you had tested the issue before.
SUBCASE("[TabContainer] cannot set current tab to an invalid value before tabs are set")
I'm not sure if I can simply modify the expected results.
I pushed the updated tests, but the results are questionable. There is inconsistency between TabBar's current_tab and TabContainer's current_tab. It's kind of expected, given the fix, but some cases are weird.