Skip to content

Commit

Permalink
8.20
Browse files Browse the repository at this point in the history
Trying to mitigate #623
  • Loading branch information
tonikelope committed Dec 9, 2023
1 parent c2c0c76 commit 7f8ba83
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 17 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>8.19</version>
<version>8.20</version>
<packaging>jar</packaging>
<repositories>
<repository>
Expand Down
27 changes: 11 additions & 16 deletions src/main/java/com/tonikelope/megabasterd/MainPanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
*/
public final class MainPanel {

public static final String VERSION = "8.19";
public static final String VERSION = "8.20";
public static final boolean FORCE_SMART_PROXY = false; //TRUE FOR DEBUGING SMART PROXY
public static final int THROTTLE_SLICE_SIZE = 16 * 1024;
public static final int DEFAULT_BYTE_BUFFER_SIZE = 16 * 1024;
Expand Down Expand Up @@ -106,14 +106,19 @@ public final class MainPanel {

public static void main(String args[]) {

boolean dark = false;

try {
dark = "yes".equals(DBTools.selectSettingValue("dark_mode"));
} catch (Exception ex) {

setupSqliteTables();

} catch (SQLException ex) {
Logger.getLogger(MainPanel.class.getName()).log(SEVERE, null, ex);
}

setNimbusLookAndFeel(dark);
setNimbusLookAndFeel("yes".equals(DBTools.selectSettingValue("dark_mode")));

if ("yes".equals(DBTools.selectSettingValue("upload_log"))) {
MiscTools.createUploadLogDir();
}

if (args.length > 0) {

Expand Down Expand Up @@ -259,16 +264,6 @@ public MainPanel() {

_resume_downloads = false;

MiscTools.createUploadLogDir();

try {

setupSqliteTables();

} catch (SQLException ex) {
Logger.getLogger(MainPanel.class.getName()).log(SEVERE, null, ex);
}

loadUserSettings();

if (_debug_file) {
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/com/tonikelope/megabasterd/SettingsDialog.java
Original file line number Diff line number Diff line change
Expand Up @@ -2129,6 +2129,10 @@ private void save_buttonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-F
settings.put("smartproxy_timeout", String.valueOf(proxy_timeout_spinner.getValue()));
settings.put("smartproxy_autorefresh_time", String.valueOf(auto_refresh_proxy_time_spinner.getValue()));

if (upload_log_checkbox.isSelected()) {
createUploadLogDir();
}

if (custom_proxy_textarea.getText().trim().length() == 0) {
smart_proxy_checkbox.setSelected(false);
}
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 7f8ba83

Please sign in to comment.