diff --git a/src/Widget.cpp b/src/Widget.cpp index d05ee63..f645d78 100644 --- a/src/Widget.cpp +++ b/src/Widget.cpp @@ -524,11 +524,11 @@ void Button::Create() void Button::SetText(const std::string& text) { - m_Text = text; - if (m_Widget) + if (m_Widget && text != m_Text) { gtk_button_set_label((GtkButton*)m_Widget, m_Text.c_str()); } + m_Text = text; } void Button::OnClick(Callback