diff options
| author | Michael Wilson | 2014-10-28 12:38:40 +0100 |
|---|---|---|
| committer | Michael Wilson | 2014-10-28 12:38:40 +0100 |
| commit | 3fecbd446d60a72cc1666e5d3e87be84b8c30c41 (patch) | |
| tree | 6425d6885f395b7511157da183d201a12ae50879 /dozentenmodul/src/main/java/gui/image/FTPSearchDownloader_GUI.java | |
| parent | [client] Fix upload not completing (diff) | |
| download | tutor-module-3fecbd446d60a72cc1666e5d3e87be84b8c30c41.tar.gz tutor-module-3fecbd446d60a72cc1666e5d3e87be84b8c30c41.tar.xz tutor-module-3fecbd446d60a72cc1666e5d3e87be84b8c30c41.zip | |
Bug behoben: GUI erkennt nun wieder einen abgeschlossenen Up-/Download
Diffstat (limited to 'dozentenmodul/src/main/java/gui/image/FTPSearchDownloader_GUI.java')
| -rw-r--r-- | dozentenmodul/src/main/java/gui/image/FTPSearchDownloader_GUI.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/dozentenmodul/src/main/java/gui/image/FTPSearchDownloader_GUI.java b/dozentenmodul/src/main/java/gui/image/FTPSearchDownloader_GUI.java index 49da4e01..c2799052 100644 --- a/dozentenmodul/src/main/java/gui/image/FTPSearchDownloader_GUI.java +++ b/dozentenmodul/src/main/java/gui/image/FTPSearchDownloader_GUI.java @@ -556,12 +556,13 @@ public class FTPSearchDownloader_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) { + // not downloading currently + //LOGGER.info("finished downloading file"); btnDownloadStoppen.setEnabled(false); btnMainMenu.setEnabled(true); } else { - // currently uploading, don't let user interact + // currently downloading, don't let user interact btnDownloadStoppen.setEnabled(true); btnMainMenu.setEnabled(false); } |
