From 3fecbd446d60a72cc1666e5d3e87be84b8c30c41 Mon Sep 17 00:00:00 2001 From: Michael Wilson Date: Tue, 28 Oct 2014 12:38:40 +0100 Subject: Bug behoben: GUI erkennt nun wieder einen abgeschlossenen Up-/Download --- dozentenmodul/src/main/java/gui/image/FTPEditDownloader_GUI.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'dozentenmodul/src/main/java/gui/image/FTPEditDownloader_GUI.java') diff --git a/dozentenmodul/src/main/java/gui/image/FTPEditDownloader_GUI.java b/dozentenmodul/src/main/java/gui/image/FTPEditDownloader_GUI.java index b26f4169..5cd9d8f9 100644 --- a/dozentenmodul/src/main/java/gui/image/FTPEditDownloader_GUI.java +++ b/dozentenmodul/src/main/java/gui/image/FTPEditDownloader_GUI.java @@ -552,8 +552,9 @@ public class FTPEditDownloader_GUI extends JFrame implements } // Button zum Fertigstellen freischalten, wenn 100% erreicht sind - if (isCurrentlyLoading() == false) { - // not uploading currently + if (isCurrentlyLoading() == false || progressBar.getPercentComplete() == 1.0) { + // no download + //LOGGER.info("finished downloading file"); btnDownloadStoppen.setEnabled(false); } else { // currently uploading, don't let user interact -- cgit v1.2.3-55-g7522