Widget: Fix delayed "SetText"

This commit is contained in:
scorpion-26 2023-03-25 21:13:03 +01:00
parent 507cf222fb
commit 3517fa5de8

View file

@ -526,7 +526,7 @@ void Button::SetText(const std::string& text)
{ {
if (m_Widget && text != m_Text) if (m_Widget && text != m_Text)
{ {
gtk_button_set_label((GtkButton*)m_Widget, m_Text.c_str()); gtk_button_set_label((GtkButton*)m_Widget, text.c_str());
} }
m_Text = text; m_Text = text;
} }