Skip to content

Commit

Permalink
2.99
Browse files Browse the repository at this point in the history
  • Loading branch information
tonikelope committed Mar 6, 2018
1 parent 69c049a commit 43b74e9
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 20 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>2.98</version>
<version>2.99</version>
<packaging>jar</packaging>
<dependencies>
<dependency>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/tonikelope/megabasterd/Download.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public final class Download implements Transference, Runnable, SecureSingleThrea

public static final boolean VERIFY_CBC_MAC_DEFAULT = false;
public static final boolean USE_SLOTS_DEFAULT = true;
public static final int WORKERS_DEFAULT = 8;
public static final int WORKERS_DEFAULT = 4;
public static final boolean USE_MEGA_ACCOUNT_DOWN = false;
public static final int CHUNK_SIZE_MULTI = 10;

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/tonikelope/megabasterd/MainPanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
*/
public final class MainPanel {

public static final String VERSION = "2.98";
public static final String VERSION = "2.99";
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
4 changes: 2 additions & 2 deletions src/main/java/com/tonikelope/megabasterd/SettingsDialog.form
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@
</Group>
<Component id="limit_upload_speed_checkbox" min="-2" max="-2" attributes="0"/>
</Group>
<EmptySpace min="0" pref="612" max="32767" attributes="0"/>
<EmptySpace min="0" pref="551" max="32767" attributes="0"/>
</Group>
</Group>
<EmptySpace max="-2" attributes="0"/>
Expand Down Expand Up @@ -727,7 +727,7 @@
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Dialog" size="14" style="2"/>
</Property>
<Property name="text" type="java.lang.String" value="Note: MULTI-SLOT is required if you want to resume uploads."/>
<Property name="text" type="java.lang.String" value="Note: MULTI-SLOT is required if you want to exit and resume uploads."/>
</Properties>
</Component>
</SubComponents>
Expand Down
10 changes: 6 additions & 4 deletions src/main/java/com/tonikelope/megabasterd/SettingsDialog.java
Original file line number Diff line number Diff line change
Expand Up @@ -916,7 +916,7 @@ public void stateChanged(javax.swing.event.ChangeEvent evt) {
});

rec_upload_slots_label.setFont(new java.awt.Font("Dialog", 2, 14)); // NOI18N
rec_upload_slots_label.setText("Note: MULTI-SLOT is required if you want to resume uploads.");
rec_upload_slots_label.setText("Note: MULTI-SLOT is required if you want to exit and resume uploads.");

javax.swing.GroupLayout uploads_panelLayout = new javax.swing.GroupLayout(uploads_panel);
uploads_panel.setLayout(uploads_panelLayout);
Expand Down Expand Up @@ -949,7 +949,7 @@ public void stateChanged(javax.swing.event.ChangeEvent evt) {
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(max_up_speed_spinner, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addComponent(limit_upload_speed_checkbox))
.addGap(0, 612, Short.MAX_VALUE)))
.addGap(0, 551, Short.MAX_VALUE)))
.addContainerGap())))
);
uploads_panelLayout.setVerticalGroup(
Expand Down Expand Up @@ -1424,8 +1424,6 @@ private void save_buttonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-F

try {

_settings_ok = true;

if (proxy_host_textfield.getText().isEmpty()) {

use_proxy_checkbox.setSelected(false);
Expand Down Expand Up @@ -1783,6 +1781,7 @@ public void run() {
public void run() {
status.setText("");
JOptionPane.showMessageDialog(tthis, "Settings successfully saved!", "Settings saved", JOptionPane.INFORMATION_MESSAGE);
_settings_ok = true;
setVisible(false);
}
});
Expand All @@ -1793,6 +1792,7 @@ public void run() {
} else {

JOptionPane.showMessageDialog(this, "Settings successfully saved!", "Settings saved", JOptionPane.INFORMATION_MESSAGE);
_settings_ok = true;
setVisible(false);
}

Expand Down Expand Up @@ -1867,6 +1867,8 @@ private void import_settings_buttonActionPerformed(java.awt.event.ActionEvent ev

JOptionPane.showMessageDialog(this, "Settings successfully imported!", "Settings imported", JOptionPane.INFORMATION_MESSAGE);

_settings_ok = true;

setVisible(false);

} catch (SQLException | ClassNotFoundException ex) {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/tonikelope/megabasterd/Transference.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
public interface Transference {

int MIN_WORKERS = 2;
int MAX_WORKERS = 40;
int MAX_WORKERS = 30;
int MAX_SIM_TRANSFERENCES = 30;
int SIM_TRANSFERENCES_DEFAULT = 4;
boolean LIMIT_TRANSFERENCE_SPEED_DEFAULT = false;
Expand Down
11 changes: 1 addition & 10 deletions src/main/java/com/tonikelope/megabasterd/Upload.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
public final class Upload implements Transference, Runnable, SecureSingleThreadNotifiable {

public static final boolean USE_SLOTS_DEFAULT = true;
public static final int WORKERS_DEFAULT = 8;
public static final int WORKERS_DEFAULT = 4;
public static final int CHUNK_SIZE_MULTI = 10;
private final MainPanel _main_panel;
private volatile UploadView _view;
Expand Down Expand Up @@ -657,15 +657,6 @@ public void run() {

Logger.getLogger(getClass().getName()).log(Level.INFO, "{0} Uploader hello! {1}", new Object[]{Thread.currentThread().getName(), this.getFile_name()});

swingInvoke(
new Runnable() {
@Override
public void run() {

getView().getClose_button().setVisible(false);
}
});

getView().printStatusNormal("Starting upload, please wait...");

if (!_exit) {
Expand Down

0 comments on commit 43b74e9

Please sign in to comment.