mirror of
https://github.com/correl/mage.git
synced 2024-11-29 03:00:12 +00:00
UI: connect button more visible
This commit is contained in:
parent
eaaa37db11
commit
007d0d19b4
1 changed files with 4 additions and 3 deletions
|
@ -92,6 +92,7 @@ public class MageFrame extends javax.swing.JFrame implements MageClient {
|
||||||
private static final String DEBUG_ARG = "-debug";
|
private static final String DEBUG_ARG = "-debug";
|
||||||
|
|
||||||
private static final String NOT_CONNECTED_TEXT = "<not connected>";
|
private static final String NOT_CONNECTED_TEXT = "<not connected>";
|
||||||
|
private static final String NOT_CONNECTED_BUTTON = "CONNECT TO SERVER";
|
||||||
private static MageFrame instance;
|
private static MageFrame instance;
|
||||||
|
|
||||||
private final ConnectDialog connectDialog;
|
private final ConnectDialog connectDialog;
|
||||||
|
@ -318,7 +319,7 @@ public class MageFrame extends javax.swing.JFrame implements MageClient {
|
||||||
}
|
}
|
||||||
|
|
||||||
setGUISize();
|
setGUISize();
|
||||||
setConnectButtonText(NOT_CONNECTED_TEXT);
|
setConnectButtonText(NOT_CONNECTED_BUTTON);
|
||||||
SwingUtilities.invokeLater(() -> {
|
SwingUtilities.invokeLater(() -> {
|
||||||
disableButtons();
|
disableButtons();
|
||||||
updateMemUsageTask.execute();
|
updateMemUsageTask.execute();
|
||||||
|
@ -1437,7 +1438,7 @@ public class MageFrame extends javax.swing.JFrame implements MageClient {
|
||||||
if (SwingUtilities.isEventDispatchThread()) { // Returns true if the current thread is an AWT event dispatching thread.
|
if (SwingUtilities.isEventDispatchThread()) { // Returns true if the current thread is an AWT event dispatching thread.
|
||||||
// REMOTE task, e.g. connecting
|
// REMOTE task, e.g. connecting
|
||||||
LOGGER.info("Disconnected from remote task");
|
LOGGER.info("Disconnected from remote task");
|
||||||
setConnectButtonText(NOT_CONNECTED_TEXT);
|
setConnectButtonText(NOT_CONNECTED_BUTTON);
|
||||||
disableButtons();
|
disableButtons();
|
||||||
hideGames();
|
hideGames();
|
||||||
hideTables();
|
hideTables();
|
||||||
|
@ -1446,7 +1447,7 @@ public class MageFrame extends javax.swing.JFrame implements MageClient {
|
||||||
LOGGER.info("Disconnected from user mode");
|
LOGGER.info("Disconnected from user mode");
|
||||||
SwingUtilities.invokeLater(() -> {
|
SwingUtilities.invokeLater(() -> {
|
||||||
SessionHandler.disconnect(false); // user already disconnected, can't do any online actions like quite chat
|
SessionHandler.disconnect(false); // user already disconnected, can't do any online actions like quite chat
|
||||||
setConnectButtonText(NOT_CONNECTED_TEXT);
|
setConnectButtonText(NOT_CONNECTED_BUTTON);
|
||||||
disableButtons();
|
disableButtons();
|
||||||
hideGames();
|
hideGames();
|
||||||
hideTables();
|
hideTables();
|
||||||
|
|
Loading…
Reference in a new issue