godot icon indicating copy to clipboard operation
godot copied to clipboard

Fix wrong tab when TabContainer was not in tree

Open KoBeWi opened this issue 3 weeks ago • 2 comments

Fixes #109291

When testing this be sure to remove .godot/exported folder if you had tested the issue before.

KoBeWi avatar Dec 01 '25 16:12 KoBeWi

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.

KoBeWi avatar Dec 06 '25 20:12 KoBeWi

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.

KoBeWi avatar Dec 07 '25 22:12 KoBeWi