aboutsummaryrefslogtreecommitdiff
path: root/main/src/ui/file_send_overlay.vala
diff options
context:
space:
mode:
authorfiaxh <git@lightrise.org>2020-06-04 17:10:57 +0200
committerfiaxh <git@lightrise.org>2020-06-04 20:08:02 +0200
commitd5e036596b94a7ec587d65698249686f0e336e14 (patch)
tree0f0952bf947b7eef291a564a401358265b4fd525 /main/src/ui/file_send_overlay.vala
parente3724f96edc60f69e8cca05cadba3a15a53febb1 (diff)
downloaddino-d5e036596b94a7ec587d65698249686f0e336e14.tar.gz
dino-d5e036596b94a7ec587d65698249686f0e336e14.zip
Only consider first file if multiple ones are drag and droped
fixes #818
Diffstat (limited to 'main/src/ui/file_send_overlay.vala')
-rw-r--r--main/src/ui/file_send_overlay.vala6
1 files changed, 5 insertions, 1 deletions
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();
});