Skip to content

Commit

Permalink
Changing text in RadioButton or CheckBox will now trigger the onSizeC…
Browse files Browse the repository at this point in the history
…hange signal (fixes #233)
  • Loading branch information
texus committed Jan 6, 2024
1 parent 8d5ed2d commit e49c071
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Widgets/RadioButton.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,11 @@ namespace tgui

void RadioButton::setText(const String& text)
{
if (m_text.getString() == text)
return;

m_text.setString(text);
onSizeChange.emit(this, getSize());
}

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Expand Down

0 comments on commit e49c071

Please sign in to comment.