Show transfer rate in progress bar after insert has finished.
authorDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Mon, 28 Dec 2009 21:59:05 +0000 (22:59 +0100)
committerDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Mon, 28 Dec 2009 21:59:05 +0000 (22:59 +0100)
src/de/todesbaum/jsite/gui/ProjectInsertPage.java

index 843499a..984e6df 100644 (file)
@@ -337,7 +337,7 @@ public class ProjectInsertPage extends TWizardPage implements InsertListener, Cl
                        @SuppressWarnings("synthetic-access")
                        public void run() {
                                progressBar.setValue(progressBar.getMaximum());
-                               progressBar.setString(I18n.getMessage("jsite.insert.done"));
+                               progressBar.setString(I18n.getMessage("jsite.insert.done") + " (" + getTransferRate() + " " + I18n.getMessage("jsite.insert.k-per-s") + ")");
                                wizard.setNextEnabled(true);
                                wizard.setQuitEnabled(true);
                        }