Skip to content

Commit

Permalink
Merge pull request #81648 from 4d49/fix-tab-metadata
Browse files Browse the repository at this point in the history
Remove the equality check for `TabBar.set_tab_metadata`
  • Loading branch information
akien-mga committed Oct 2, 2023
2 parents 6b70dfe + 4982bec commit 0d03444
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions scene/gui/tab_bar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -851,11 +851,6 @@ bool TabBar::is_tab_hidden(int p_tab) const {

void TabBar::set_tab_metadata(int p_tab, const Variant &p_metadata) {
ERR_FAIL_INDEX(p_tab, tabs.size());

if (tabs[p_tab].metadata == p_metadata) {
return;
}

tabs.write[p_tab].metadata = p_metadata;
}

Expand Down

0 comments on commit 0d03444

Please sign in to comment.