From f941ad1befc0049bb2c4be08cf76df0c09dc1016 Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Sat, 15 Jul 2023 15:49:35 -0400 Subject: clear input when exiting editing --- src/components/chatinput.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/components/chatinput.cpp') diff --git a/src/components/chatinput.cpp b/src/components/chatinput.cpp index 8ad0c3f..c88de49 100644 --- a/src/components/chatinput.cpp +++ b/src/components/chatinput.cpp @@ -497,6 +497,10 @@ void ChatInput::InsertText(const Glib::ustring &text) { m_input.Get().InsertText(text); } +void ChatInput::Clear() { + GetBuffer()->set_text(""); +} + Glib::RefPtr ChatInput::GetBuffer() { return m_input.Get().GetBuffer(); } -- cgit v1.2.3