mirror of
https://github.com/correl/mage.git
synced 2025-03-07 20:53:18 -10:00
Checking for server connection after frame was displayed.
This commit is contained in:
parent
770e5673f5
commit
36f512de71
1 changed files with 9 additions and 4 deletions
|
@ -144,10 +144,6 @@ public class MageFrame extends javax.swing.JFrame {
|
|||
combat.hideDialog();
|
||||
desktopPane.add(pickNumber, JLayeredPane.POPUP_LAYER);
|
||||
session.getUI().addComponent(MageComponents.DESKTOP_PANE, desktopPane);
|
||||
if (autoConnect())
|
||||
enableButtons();
|
||||
else
|
||||
disableButtons();
|
||||
|
||||
String filename = "/background.jpg";
|
||||
try {
|
||||
|
@ -216,6 +212,15 @@ public class MageFrame extends javax.swing.JFrame {
|
|||
}
|
||||
|
||||
session.getUI().addButton(MageComponents.TABLES_MENU_BUTTON, btnGames);
|
||||
|
||||
SwingUtilities.invokeLater(new Runnable() {
|
||||
public void run() {
|
||||
if (autoConnect())
|
||||
enableButtons();
|
||||
else
|
||||
disableButtons();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
private void btnImagesActionPerformed(java.awt.event.ActionEvent evt) {
|
||||
|
|
Loading…
Add table
Reference in a new issue