i2psnark: Don't say 'download finished' unless we downloaded something

atomics
This commit is contained in:
zzz
2015-06-02 20:14:33 +00:00
parent dc9256f274
commit 09e867b194
2 changed files with 11 additions and 9 deletions

View File

@ -1976,7 +1976,8 @@ public class SnarkManager implements CompleteListener {
if (meta.getFiles() != null)
buf.append('/');
buf.append("\">").append(base).append("</a>");
addMessageNoEscape(_("Download finished: {0}", buf.toString())); // + " (" + _("size: {0}B", DataHelper.formatSize2(len)) + ')');
if (snark.getDownloaded() > 0)
addMessageNoEscape(_("Download finished: {0}", buf.toString())); // + " (" + _("size: {0}B", DataHelper.formatSize2(len)) + ')');
updateStatus(snark);
}