From 3517fa5de835744f2bfebd15a570bd55a6c2855f Mon Sep 17 00:00:00 2001 From: scorpion-26 <58082714+scorpion-26@users.noreply.github.com> Date: Sat, 25 Mar 2023 21:13:03 +0100 Subject: [PATCH] Widget: Fix delayed "SetText" --- src/Widget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Widget.cpp b/src/Widget.cpp index 8fe8310..0e62a27 100644 --- a/src/Widget.cpp +++ b/src/Widget.cpp @@ -526,7 +526,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; }