Skip to content

Commit

Permalink
Produce a more useful notification on file/folder receive
Browse files Browse the repository at this point in the history
For #45
  • Loading branch information
Jacalz committed Nov 13, 2022
1 parent 77f616f commit f0f4903
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/transport/bridge/recv.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,10 @@ func (p *RecvList) NewReceive(code string) {
p.client.ShowNotification("Receive failed", "An error occurred when receiving the data.")
item.Progress.Failed()
dialog.ShowError(err, p.window)
} else if item.Name != "Text Snippet" {
p.client.ShowNotification("Receive completed", "The contents were saved to "+item.URI.Path()+".")
} else {
p.client.ShowNotification("Receive completed", "The data was received successfully.")
p.client.ShowNotification("Receive completed", "The text was received successfully.")
}

p.Refresh()
Expand Down

0 comments on commit f0f4903

Please sign in to comment.