diff options
author | fiaxh <git@lightrise.org> | 2021-10-12 16:23:25 +0200 |
---|---|---|
committer | fiaxh <git@lightrise.org> | 2021-10-12 19:43:57 +0200 |
commit | bea85c8ab5f74d96f37c1b3a6ea1e83edd0de500 (patch) | |
tree | 973d1211daa374679d87c27312b4d1d671fe7944 /main/src/ui/conversation_view_controller.vala | |
parent | 76e425ed2705349b201444e78719896419862b00 (diff) | |
download | dino-bea85c8ab5f74d96f37c1b3a6ea1e83edd0de500.tar.gz dino-bea85c8ab5f74d96f37c1b3a6ea1e83edd0de500.zip |
Fix compiler warnings ('cast between incompatible function types') by not connecting closures
Diffstat (limited to 'main/src/ui/conversation_view_controller.vala')
-rw-r--r-- | main/src/ui/conversation_view_controller.vala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/src/ui/conversation_view_controller.vala b/main/src/ui/conversation_view_controller.vala index 87657b37..32b69835 100644 --- a/main/src/ui/conversation_view_controller.vala +++ b/main/src/ui/conversation_view_controller.vala @@ -37,8 +37,8 @@ public class ConversationViewController : Object { this.app = GLib.Application.get_default() as Application; this.chat_input_controller = new ChatInputController(view.chat_input, stream_interactor); - chat_input_controller.activate_last_message_correction.connect(() => view.conversation_frame.activate_last_message_correction()); - chat_input_controller.file_picker_selected.connect(() => open_file_picker()); + chat_input_controller.activate_last_message_correction.connect(view.conversation_frame.activate_last_message_correction); + chat_input_controller.file_picker_selected.connect(open_file_picker); chat_input_controller.clipboard_pasted.connect(on_clipboard_paste); view.conversation_frame.init(stream_interactor); |