Skip to content

Commit

Permalink
Widget: Fix delayed "SetText"
Browse files Browse the repository at this point in the history
  • Loading branch information
scorpion-26 committed Mar 25, 2023
1 parent 7f22f01 commit 9d9cdbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Widget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@ void Button::SetText(const std::string& 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;
}
Expand Down

0 comments on commit 9d9cdbe

Please sign in to comment.