mirror of
https://github.com/tonikelope/megabasterd.git
synced 2025-04-29 14:14:37 +02:00
8.20
Trying to mitigate https://github.com/tonikelope/megabasterd/issues/623
This commit is contained in:
parent
c2c0c764b5
commit
7f8ba83209
2
pom.xml
2
pom.xml
@ -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>
|
||||
|
@ -69,7 +69,7 @@ import javax.swing.UIManager;
|
||||
*/
|
||||
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;
|
||||
@ -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) {
|
||||
|
||||
@ -259,16 +264,6 @@ public final class MainPanel {
|
||||
|
||||
_resume_downloads = false;
|
||||
|
||||
MiscTools.createUploadLogDir();
|
||||
|
||||
try {
|
||||
|
||||
setupSqliteTables();
|
||||
|
||||
} catch (SQLException ex) {
|
||||
Logger.getLogger(MainPanel.class.getName()).log(SEVERE, null, ex);
|
||||
}
|
||||
|
||||
loadUserSettings();
|
||||
|
||||
if (_debug_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_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);
|
||||
}
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 213 KiB After Width: | Height: | Size: 214 KiB |
Loading…
x
Reference in New Issue
Block a user