Skip to content

Commit

Permalink
5.70
Browse files Browse the repository at this point in the history
-Pro acount download fix
-Progress bar color changed
  • Loading branch information
tonikelope committed Nov 9, 2018
1 parent 73778d2 commit 6455c35
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 6 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.tonikelope</groupId>
<artifactId>MegaBasterd</artifactId>
<version>5.69</version>
<version>5.70</version>
<packaging>jar</packaging>
<dependencies>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
*/
public class ChunkUploader implements Runnable, SecureSingleThreadNotifiable {

public static final int MAX_CHUNK_ERROR = 10;
public static final int MAX_CHUNK_ERROR = 20;
private final int _id;
private final Upload _upload;
private volatile boolean _exit;
Expand Down
12 changes: 11 additions & 1 deletion src/main/java/com/tonikelope/megabasterd/LinkGrabberDialog.java
Original file line number Diff line number Diff line change
Expand Up @@ -424,10 +424,20 @@ private void use_mega_account_down_comboboxItemStateChanged(java.awt.event.ItemE
@Override
public void run() {

boolean use_account = true;

try {
checkMegaAccountLoginAndShowMasterPassDialog(_main_panel, tthis, _selected_item);

if (checkMegaAccountLoginAndShowMasterPassDialog(_main_panel, tthis, _selected_item) == null) {
use_account = false;
}

} catch (Exception ex) {

use_account = false;
}

if (!use_account) {
swingInvoke(new Runnable() {
@Override
public void run() {
Expand Down
6 changes: 5 additions & 1 deletion src/main/java/com/tonikelope/megabasterd/MainPanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
import static javax.swing.JOptionPane.WARNING_MESSAGE;
import static javax.swing.JOptionPane.YES_NO_CANCEL_OPTION;
import static javax.swing.JOptionPane.showOptionDialog;
import javax.swing.UIDefaults;
import javax.swing.UIManager;

/**
Expand All @@ -47,7 +48,7 @@
*/
public final class MainPanel {

public static final String VERSION = "5.69";
public static final String VERSION = "5.70";
public static final int THROTTLE_SLICE_SIZE = 16 * 1024;
public static final int DEFAULT_BYTE_BUFFER_SIZE = 16 * 1024;
public static final int STREAMER_PORT = 1337;
Expand Down Expand Up @@ -75,6 +76,9 @@ public static void main(String args[]) {

setNimbusLookAndFeel();

UIDefaults defaults = UIManager.getLookAndFeelDefaults();
defaults.put("nimbusOrange", defaults.get("nimbusFocus"));

if (args.length > 0) {

try {
Expand Down
13 changes: 11 additions & 2 deletions src/main/java/com/tonikelope/megabasterd/StreamerDialog.java
Original file line number Diff line number Diff line change
Expand Up @@ -294,15 +294,24 @@ private void use_mega_account_down_comboboxItemStateChanged(java.awt.event.ItemE
@Override
public void run() {

boolean use_account = true;

try {
checkMegaAccountLoginAndShowMasterPassDialog(_main_panel, tthis, _selected_item);

if (checkMegaAccountLoginAndShowMasterPassDialog(_main_panel, tthis, _selected_item) == null) {
use_account = false;
}

} catch (Exception ex) {

use_account = false;
}

if (!use_account) {
swingInvoke(new Runnable() {
@Override
public void run() {
use_mega_account_down_combobox.setSelectedIndex(_main_panel.getMega_accounts().size());
pack();

}
});
Expand Down
Binary file modified src/main/resources/images/mbasterd_screen.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 6455c35

Please sign in to comment.