From e49c07135dfae5e7668addf69599f67b4529b070 Mon Sep 17 00:00:00 2001 From: Bruno Van de Velde Date: Sat, 6 Jan 2024 15:26:27 +0100 Subject: [PATCH] Changing text in RadioButton or CheckBox will now trigger the onSizeChange signal (fixes #233) --- src/Widgets/RadioButton.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Widgets/RadioButton.cpp b/src/Widgets/RadioButton.cpp index 73a2be1cf..48f907ff0 100644 --- a/src/Widgets/RadioButton.cpp +++ b/src/Widgets/RadioButton.cpp @@ -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()); } /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////