This commit is contained in:
tonikelope 2017-12-19 23:41:55 +01:00
parent 8d6579a199
commit f59b0d217f
4 changed files with 8 additions and 4 deletions

View File

@ -45,7 +45,7 @@ public final class Download implements Transference, Runnable, SecureSingleThrea
public static final boolean VERIFY_CBC_MAC_DEFAULT = false; public static final boolean VERIFY_CBC_MAC_DEFAULT = false;
public static final boolean USE_SLOTS_DEFAULT = false; public static final boolean USE_SLOTS_DEFAULT = false;
public static final int WORKERS_DEFAULT = 6; public static final int WORKERS_DEFAULT = 8;
public static final boolean USE_MEGA_ACCOUNT_DOWN = false; public static final boolean USE_MEGA_ACCOUNT_DOWN = false;
public static final int CHUNK_SIZE_MULTI = 10; public static final int CHUNK_SIZE_MULTI = 10;

View File

@ -100,7 +100,7 @@ public final class KissVideoStreamServer implements HttpHandler, SecureSingleThr
swingReflectionInvoke("setForeground", _main_panel.getView().getKiss_server_status(), new Color(0, 128, 0)); swingReflectionInvoke("setForeground", _main_panel.getView().getKiss_server_status(), new Color(0, 128, 0));
swingReflectionInvoke("setText", _main_panel.getView().getKiss_server_status(), "Stream server running on localhost:" + STREAMER_PORT + " (Waiting for request...)"); swingReflectionInvokeAndWait("setText", _main_panel.getView().getKiss_server_status(), "Stream server running on localhost:" + STREAMER_PORT + " (Waiting for request...)");
HttpServer httpserver = HttpServer.create(new InetSocketAddress(InetAddress.getLoopbackAddress(), port), 0); HttpServer httpserver = HttpServer.create(new InetSocketAddress(InetAddress.getLoopbackAddress(), port), 0);

View File

@ -45,7 +45,7 @@ import org.apache.http.auth.UsernamePasswordCredentials;
*/ */
public final class MainPanel { public final class MainPanel {
public static final String VERSION = "2.55"; public static final String VERSION = "2.56";
public static final int THROTTLE_SLICE_SIZE = 16 * 1024; public static final int THROTTLE_SLICE_SIZE = 16 * 1024;
public static final int DEFAULT_BYTE_BUFFER_SIZE = 16 * 1024; public static final int DEFAULT_BYTE_BUFFER_SIZE = 16 * 1024;
public static final int STREAMER_PORT = 1337; public static final int STREAMER_PORT = 1337;
@ -781,6 +781,8 @@ public final class MainPanel {
swingReflectionInvoke("setVisible", getView(), true); swingReflectionInvoke("setVisible", getView(), true);
getView().repaint();
} }
}); });
@ -809,7 +811,9 @@ public final class MainPanel {
if (!(boolean) swingReflectionInvokeAndWaitForReturn("isVisible", getView())) { if (!(boolean) swingReflectionInvokeAndWaitForReturn("isVisible", getView())) {
swingReflectionInvoke("setExtendedState", getView(), NORMAL); swingReflectionInvoke("setExtendedState", getView(), NORMAL);
swingReflectionInvoke("setVisible", getView(), true); swingReflectionInvoke("setVisible", getView(), true);
getView().repaint();
} else { } else {
swingReflectionInvoke("dispatchEvent", getView(), new WindowEvent(getView(), WINDOW_CLOSING)); swingReflectionInvoke("dispatchEvent", getView(), new WindowEvent(getView(), WINDOW_CLOSING));
} }
} }

View File

@ -25,7 +25,7 @@ import static megabasterd.MiscTools.*;
public final class Upload implements Transference, Runnable, SecureSingleThreadNotifiable { public final class Upload implements Transference, Runnable, SecureSingleThreadNotifiable {
public static final boolean USE_SLOTS_DEFAULT = false; public static final boolean USE_SLOTS_DEFAULT = false;
public static final int WORKERS_DEFAULT = 6; public static final int WORKERS_DEFAULT = 8;
private final MainPanel _main_panel; private final MainPanel _main_panel;
private volatile UploadView _view; private volatile UploadView _view;
private volatile ProgressMeter _progress_meter; private volatile ProgressMeter _progress_meter;