From d5e036596b94a7ec587d65698249686f0e336e14 Mon Sep 17 00:00:00 2001 From: fiaxh Date: Thu, 4 Jun 2020 17:10:57 +0200 Subject: Only consider first file if multiple ones are drag and droped fixes #818 --- main/src/ui/file_send_overlay.vala | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'main/src/ui/file_send_overlay.vala') diff --git a/main/src/ui/file_send_overlay.vala b/main/src/ui/file_send_overlay.vala index c19a5aef..feb18e8c 100644 --- a/main/src/ui/file_send_overlay.vala +++ b/main/src/ui/file_send_overlay.vala @@ -20,9 +20,13 @@ public class FileSendOverlay : Gtk.EventBox { private bool can_send = true; public FileSendOverlay(File file, FileInfo file_info) { - close_button.clicked.connect(() => this.destroy()); + close_button.clicked.connect(() => { + this.close(); + this.destroy(); + }); send_button.clicked.connect(() => { send_file(); + this.close(); this.destroy(); }); -- cgit v1.2.3-54-g00ecf