diff options
author | fiaxh <git@lightrise.org> | 2019-10-16 03:25:44 +0200 |
---|---|---|
committer | fiaxh <git@lightrise.org> | 2019-10-16 03:32:22 +0200 |
commit | f34aa58626980e199b9e68532661c3ed0487771a (patch) | |
tree | 7eded68797cfab7467493effbfa6ebce4ad6ce8a /main/src/ui/chat_input | |
parent | 8e6db8859c756ef2445e1f5277103d83c735c726 (diff) | |
download | dino-f34aa58626980e199b9e68532661c3ed0487771a.tar.gz dino-f34aa58626980e199b9e68532661c3ed0487771a.zip |
Fix slash commands
Diffstat (limited to 'main/src/ui/chat_input')
-rw-r--r-- | main/src/ui/chat_input/view.vala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/src/ui/chat_input/view.vala b/main/src/ui/chat_input/view.vala index 24297e6a..960e4e14 100644 --- a/main/src/ui/chat_input/view.vala +++ b/main/src/ui/chat_input/view.vala @@ -10,7 +10,7 @@ namespace Dino.Ui.ChatInput { [GtkTemplate (ui = "/im/dino/Dino/chat_input.ui")] public class View : Box { - public signal void send_text(string text); + public signal void send_text(); public string text { owned get { return text_input.buffer.text; } @@ -138,7 +138,7 @@ public class View : Box { if ((event.state & ModifierType.SHIFT_MASK) > 0) { text_input.buffer.insert_at_cursor("\n", 1); } else if (this.text != "") { - send_text(this.text); + send_text(); edit_history.reset_history(); } return true; |