This commit is contained in:
tonikelope 2018-03-13 17:03:33 +01:00
parent e4835277ec
commit 793bced687
3 changed files with 12 additions and 10 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>3.4</version> <version>3.5</version>
<packaging>jar</packaging> <packaging>jar</packaging>
<dependencies> <dependencies>
<dependency> <dependency>

View File

@ -48,7 +48,7 @@ import org.apache.http.auth.UsernamePasswordCredentials;
*/ */
public final class MainPanel { public final class MainPanel {
public static final String VERSION = "3.4"; public static final String VERSION = "3.5";
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;
public static final int STREAMER_PORT = 1337; public static final int STREAMER_PORT = 1337;
@ -741,7 +741,7 @@ public final class MainPanel {
} }
} }
public void byebye() { public void byebye(boolean restart) {
if (!_exit && checkByeBye()) { if (!_exit && checkByeBye()) {
@ -860,7 +860,12 @@ public final class MainPanel {
Logger.getLogger(MainPanel.class.getName()).log(Level.SEVERE, null, ex); Logger.getLogger(MainPanel.class.getName()).log(Level.SEVERE, null, ex);
} }
exit(0); if (restart) {
restartApplication(1);
} else {
exit(0);
}
} }
} }
@ -1058,7 +1063,7 @@ public final class MainPanel {
} }
byebye(); byebye(false);
} }

View File

@ -866,10 +866,7 @@ public final class MainPanelView extends javax.swing.JFrame {
JOptionPane.showMessageDialog(this, "MegaBasterd will restart", "Restart required", JOptionPane.WARNING_MESSAGE); JOptionPane.showMessageDialog(this, "MegaBasterd will restart", "Restart required", JOptionPane.WARNING_MESSAGE);
if (_main_panel.checkByeBye()) { _main_panel.byebye(true);
restartApplication(1);
}
} }
if (!dialog.isRemember_master_pass()) { if (!dialog.isRemember_master_pass()) {
@ -896,7 +893,7 @@ public final class MainPanelView extends javax.swing.JFrame {
private void exit_menuActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_exit_menuActionPerformed private void exit_menuActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_exit_menuActionPerformed
_main_panel.byebye(); _main_panel.byebye(false);
}//GEN-LAST:event_exit_menuActionPerformed }//GEN-LAST:event_exit_menuActionPerformed
private void close_all_finished_down_buttonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_close_all_finished_down_buttonActionPerformed private void close_all_finished_down_buttonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_close_all_finished_down_buttonActionPerformed