forked from External/mage
added reconnect dialog - not quite finished
This commit is contained in:
parent
89f6e18c90
commit
975ce7ba21
5 changed files with 291 additions and 44 deletions
|
|
@ -712,7 +712,7 @@ public class MageFrame extends javax.swing.JFrame {
|
|||
private void btnConnectActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnConnectActionPerformed
|
||||
if (session.isConnected()) {
|
||||
if (JOptionPane.showConfirmDialog(this, "Are you sure you want to disconnect?", "Confirm disconnect", JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION) {
|
||||
session.disconnect();
|
||||
session.disconnect(true);
|
||||
}
|
||||
} else {
|
||||
connectDialog.showDialog();
|
||||
|
|
@ -726,7 +726,7 @@ public class MageFrame extends javax.swing.JFrame {
|
|||
}//GEN-LAST:event_btnAboutActionPerformed
|
||||
|
||||
public void exitApp() {
|
||||
session.disconnect();
|
||||
session.disconnect(true);
|
||||
Plugins.getInstance().shutdown();
|
||||
dispose();
|
||||
System.exit(0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue