From 9d9cdbeabe1500ef03465a382745eeb0b27edbf6 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 58c927d..8d7b66c 100644 --- a/src/Widget.cpp +++ b/src/Widget.cpp @@ -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; }