Trying to mitigate https://github.com/tonikelope/megabasterd/issues/623
This commit is contained in:
tonikelope 2023-12-09 12:50:42 +01:00
parent c2c0c764b5
commit 7f8ba83209
4 changed files with 16 additions and 17 deletions

View File

@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>com.tonikelope</groupId> <groupId>com.tonikelope</groupId>
<artifactId>MegaBasterd</artifactId> <artifactId>MegaBasterd</artifactId>
<version>8.19</version> <version>8.20</version>
<packaging>jar</packaging> <packaging>jar</packaging>
<repositories> <repositories>
<repository> <repository>

View File

@ -69,7 +69,7 @@ import javax.swing.UIManager;
*/ */
public final class MainPanel { 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 boolean FORCE_SMART_PROXY = false; //TRUE FOR DEBUGING SMART PROXY
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;
@ -106,14 +106,19 @@ public final class MainPanel {
public static void main(String args[]) { public static void main(String args[]) {
boolean dark = false;
try { 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) { if (args.length > 0) {
@ -259,16 +264,6 @@ public final class MainPanel {
_resume_downloads = false; _resume_downloads = false;
MiscTools.createUploadLogDir();
try {
setupSqliteTables();
} catch (SQLException ex) {
Logger.getLogger(MainPanel.class.getName()).log(SEVERE, null, ex);
}
loadUserSettings(); loadUserSettings();
if (_debug_file) { if (_debug_file) {

View File

@ -2129,6 +2129,10 @@ public class SettingsDialog extends javax.swing.JDialog {
settings.put("smartproxy_timeout", String.valueOf(proxy_timeout_spinner.getValue())); settings.put("smartproxy_timeout", String.valueOf(proxy_timeout_spinner.getValue()));
settings.put("smartproxy_autorefresh_time", String.valueOf(auto_refresh_proxy_time_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) { if (custom_proxy_textarea.getText().trim().length() == 0) {
smart_proxy_checkbox.setSelected(false); smart_proxy_checkbox.setSelected(false);
} }

Binary file not shown.

Before

Width:  |  Height:  |  Size: 213 KiB

After

Width:  |  Height:  |  Size: 214 KiB