aboutsummaryrefslogtreecommitdiff
path: root/main/src/ui/file_send_overlay.vala
diff options
context:
space:
mode:
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();
});