mirror of
https://github.com/tonikelope/megabasterd.git
synced 2025-05-29 21:10:18 +02:00
1.22b
This commit is contained in:
parent
efbbaad531
commit
602c369868
@ -16,8 +16,8 @@ import static megabasterd.MiscTools.getWaitTimeExpBackOff;
|
|||||||
*/
|
*/
|
||||||
public class ChunkDownloaderMono extends ChunkDownloader {
|
public class ChunkDownloaderMono extends ChunkDownloader {
|
||||||
|
|
||||||
public ChunkDownloaderMono(int id, Download download) {
|
public ChunkDownloaderMono(Download download) {
|
||||||
super(id, download);
|
super(1, download);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -28,8 +28,8 @@ import static megabasterd.MiscTools.getWaitTimeExpBackOff;
|
|||||||
*/
|
*/
|
||||||
public class ChunkUploaderMono extends ChunkUploader {
|
public class ChunkUploaderMono extends ChunkUploader {
|
||||||
|
|
||||||
public ChunkUploaderMono(int id, Upload upload) {
|
public ChunkUploaderMono(Upload upload) {
|
||||||
super(id, upload);
|
super(1, upload);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -448,13 +448,21 @@ public final class Download implements Transference, Runnable, SecureNotifiable
|
|||||||
|
|
||||||
swingReflectionInvoke("setVisible", getView().getSlots_spinner(), true);
|
swingReflectionInvoke("setVisible", getView().getSlots_spinner(), true);
|
||||||
|
|
||||||
|
swingReflectionInvoke("setVisible", getView().getSlot_status_label(), true);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
ChunkDownloaderMono c = new ChunkDownloaderMono(1, this);
|
ChunkDownloaderMono c = new ChunkDownloaderMono(this);
|
||||||
|
|
||||||
_chunkworkers.add(c);
|
_chunkworkers.add(c);
|
||||||
|
|
||||||
_thread_pool.execute(c);
|
_thread_pool.execute(c);
|
||||||
|
|
||||||
|
swingReflectionInvoke("setVisible", getView().getSlots_label(), false);
|
||||||
|
|
||||||
|
swingReflectionInvoke("setVisible", getView().getSlots_spinner(), false);
|
||||||
|
|
||||||
|
swingReflectionInvoke("setVisible", getView().getSlot_status_label(), false);
|
||||||
}
|
}
|
||||||
|
|
||||||
getView().printStatusNormal("Downloading file from mega ...");
|
getView().printStatusNormal("Downloading file from mega ...");
|
||||||
|
@ -660,9 +660,12 @@ public final class Upload implements Transference, Runnable, SecureNotifiable {
|
|||||||
|
|
||||||
swingReflectionInvoke("setVisible", getView().getSlots_spinner(), true);
|
swingReflectionInvoke("setVisible", getView().getSlots_spinner(), true);
|
||||||
|
|
||||||
|
swingReflectionInvoke("setVisible", getView().getSlot_status_label(), true);
|
||||||
|
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
ChunkUploaderMono c = new ChunkUploaderMono(1, this);
|
ChunkUploaderMono c = new ChunkUploaderMono(this);
|
||||||
|
|
||||||
_chunkworkers.add(c);
|
_chunkworkers.add(c);
|
||||||
|
|
||||||
@ -671,6 +674,8 @@ public final class Upload implements Transference, Runnable, SecureNotifiable {
|
|||||||
swingReflectionInvoke("setVisible", getView().getSlots_label(), false);
|
swingReflectionInvoke("setVisible", getView().getSlots_label(), false);
|
||||||
|
|
||||||
swingReflectionInvoke("setVisible", getView().getSlots_spinner(), false);
|
swingReflectionInvoke("setVisible", getView().getSlots_spinner(), false);
|
||||||
|
|
||||||
|
swingReflectionInvoke("setVisible", getView().getSlot_status_label(), false);
|
||||||
}
|
}
|
||||||
|
|
||||||
printStatus("Uploading file to mega ("+_ma.getEmail()+") ...");
|
printStatus("Uploading file to mega ("+_ma.getEmail()+") ...");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user