mirror of
https://github.com/tonikelope/megabasterd.git
synced 2025-05-23 18:16:18 +02:00
3.5
This commit is contained in:
parent
e4835277ec
commit
793bced687
2
pom.xml
2
pom.xml
@ -3,7 +3,7 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>com.tonikelope</groupId>
|
||||
<artifactId>MegaBasterd</artifactId>
|
||||
<version>3.4</version>
|
||||
<version>3.5</version>
|
||||
<packaging>jar</packaging>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
|
@ -48,7 +48,7 @@ import org.apache.http.auth.UsernamePasswordCredentials;
|
||||
*/
|
||||
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 DEFAULT_BYTE_BUFFER_SIZE = 16 * 1024;
|
||||
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()) {
|
||||
|
||||
@ -860,10 +860,15 @@ public final class MainPanel {
|
||||
Logger.getLogger(MainPanel.class.getName()).log(Level.SEVERE, null, ex);
|
||||
}
|
||||
|
||||
if (restart) {
|
||||
restartApplication(1);
|
||||
} else {
|
||||
exit(0);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
WarningExitMessage exit_message = new WarningExitMessage(getView(), true, this);
|
||||
@ -1058,7 +1063,7 @@ public final class MainPanel {
|
||||
|
||||
}
|
||||
|
||||
byebye();
|
||||
byebye(false);
|
||||
|
||||
}
|
||||
|
||||
|
@ -866,10 +866,7 @@ public final class MainPanelView extends javax.swing.JFrame {
|
||||
|
||||
JOptionPane.showMessageDialog(this, "MegaBasterd will restart", "Restart required", JOptionPane.WARNING_MESSAGE);
|
||||
|
||||
if (_main_panel.checkByeBye()) {
|
||||
|
||||
restartApplication(1);
|
||||
}
|
||||
_main_panel.byebye(true);
|
||||
}
|
||||
|
||||
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
|
||||
|
||||
_main_panel.byebye();
|
||||
_main_panel.byebye(false);
|
||||
}//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
|
||||
|
Loading…
x
Reference in New Issue
Block a user