Merge pull request #81648 from 4d49/fix-tab-metadata

Remove the equality check for `TabBar.set_tab_metadata`
This commit is contained in:
Rémi Verschelde 2023-10-02 13:16:23 +02:00
commit 0d034447b7
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 0 additions and 5 deletions

View File

@ -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) { void TabBar::set_tab_metadata(int p_tab, const Variant &p_metadata) {
ERR_FAIL_INDEX(p_tab, tabs.size()); ERR_FAIL_INDEX(p_tab, tabs.size());
if (tabs[p_tab].metadata == p_metadata) {
return;
}
tabs.write[p_tab].metadata = p_metadata; tabs.write[p_tab].metadata = p_metadata;
} }