diff --git a/src/main/java/com/sheepit/client/Client.java b/src/main/java/com/sheepit/client/Client.java index ac411c0..4489c55 100644 --- a/src/main/java/com/sheepit/client/Client.java +++ b/src/main/java/com/sheepit/client/Client.java @@ -861,8 +861,11 @@ import okhttp3.HttpUrl; } protected Error.Type downloadSceneFile(Job ajob_) throws SheepItException { - for (Chunk chunk : ajob_.getArchiveChunks()) { - Error.Type ret = this.downloadFile(ajob_, ajob_.getRequiredProjectChunkPath(chunk.getId()), chunk.getMd5(), String.format(LOCALE, "%s?chunk=%s", this.server.getPage("download-chunk"), chunk.getId()), "project"); + + int total = ajob_.getArchiveChunks().size(); + for (int i = 0; i < total; i++) { + Chunk chunk = ajob_.getArchiveChunks().get(i); + Error.Type ret = this.downloadFile(ajob_, ajob_.getRequiredProjectChunkPath(chunk.getId()), chunk.getMd5(), String.format(LOCALE, "%s?chunk=%s", this.server.getPage("download-chunk"), chunk.getId()), String.format(LOCALE, "chunk %d/%d", i, total)); if (ret != Type.OK) { return ret; } diff --git a/src/main/java/com/sheepit/client/standalone/GuiSwing.java b/src/main/java/com/sheepit/client/standalone/GuiSwing.java index b09d0b3..0a60bf3 100644 --- a/src/main/java/com/sheepit/client/standalone/GuiSwing.java +++ b/src/main/java/com/sheepit/client/standalone/GuiSwing.java @@ -69,6 +69,7 @@ import java.util.TimerTask; public class GuiSwing extends JFrame implements Gui { public static final String type = "swing"; private static final String logoPath = "/sheepit-logo.png"; + public static final int WIDTH = 540; public static void drawVersionStringOnImage(final BufferedImage image, String versionString) { var watermarkWidth = image.getWidth(); @@ -189,7 +190,7 @@ public class GuiSwing extends JFrame implements Gui { } setTitle(title); - setSize(520, 760); + setSize(WIDTH, 760); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); diff --git a/src/main/java/com/sheepit/client/standalone/swing/activity/Settings.java b/src/main/java/com/sheepit/client/standalone/swing/activity/Settings.java index b41d388..13bfbf0 100644 --- a/src/main/java/com/sheepit/client/standalone/swing/activity/Settings.java +++ b/src/main/java/com/sheepit/client/standalone/swing/activity/Settings.java @@ -541,7 +541,7 @@ public class Settings implements Activity { parent.getContentPanel().add(savePanel, constraints); // Increase the size of the app Window to ensure it shows all the information with the Advanced Options panel opened. - parent.setSize(520,850); + parent.setSize(GuiSwing.WIDTH, 850); if (haveAutoStarted == false && config.isAutoSignIn() && checkDisplaySaveButton()) { // auto start diff --git a/src/main/java/com/sheepit/client/standalone/swing/activity/Working.java b/src/main/java/com/sheepit/client/standalone/swing/activity/Working.java index c34cc6d..21c210f 100644 --- a/src/main/java/com/sheepit/client/standalone/swing/activity/Working.java +++ b/src/main/java/com/sheepit/client/standalone/swing/activity/Working.java @@ -298,7 +298,7 @@ public class Working implements Activity { parent.getContentPanel().add(buttonsPanel, global_constraints); // Set the proper size for the Working (if coming from Settings screen, the window size will be too big for the content!) - parent.setSize(520, 820); + parent.setSize(GuiSwing.WIDTH, 820); } public void resizeWindow() { @@ -306,7 +306,7 @@ public class Working implements Activity { parent.repaint(); // Calculate the proper size based on the status of the panels (opened/collapsed) - parent.setSize(520, (int) (session_info_panel.getHeight() + global_stats_panel.getHeight() + last_frame_panel.getHeight()) + 400); + parent.setSize(GuiSwing.WIDTH, (int) (session_info_panel.getHeight() + global_stats_panel.getHeight() + last_frame_panel.getHeight()) + 400); } public void setStatus(String msg_) {