mirror of
https://github.com/correl/mage.git
synced 2025-04-09 09:11:05 -09:00
Done - Issue 35: Hide Quick Start button
This commit is contained in:
parent
92dc74634b
commit
e2955de950
2 changed files with 8 additions and 1 deletions
Mage.Client/src/main/java/mage/client
|
@ -96,6 +96,7 @@ public class MageFrame extends javax.swing.JFrame {
|
|||
private static Preferences prefs = Preferences.userNodeForPackage(MageFrame.class);
|
||||
private JLabel title;
|
||||
private Rectangle titleRectangle;
|
||||
public final static String testModeArg = "-testMode=";
|
||||
|
||||
/**
|
||||
* @return the session
|
||||
|
@ -553,6 +554,12 @@ public class MageFrame extends javax.swing.JFrame {
|
|||
splash.update();
|
||||
}
|
||||
|
||||
for (String arg: args) {
|
||||
if (arg.startsWith(testModeArg)) {
|
||||
System.setProperty(testModeArg, "true");
|
||||
}
|
||||
}
|
||||
|
||||
Thread.setDefaultUncaughtExceptionHandler(new Thread.UncaughtExceptionHandler() {
|
||||
public void uncaughtException(Thread t, Throwable e) {
|
||||
logger.log(Level.SEVERE, null, e);
|
||||
|
|
|
@ -152,7 +152,7 @@ public class TablesPanel extends javax.swing.JPanel implements Observer {
|
|||
|
||||
this.roomId = roomId;
|
||||
session = MageFrame.getSession();
|
||||
this.btnQuickStart.setVisible(true);
|
||||
btnQuickStart.setVisible(System.getProperty(MageFrame.testModeArg) != null);
|
||||
if (newTableDialog == null) {
|
||||
newTableDialog = new NewTableDialog();
|
||||
MageFrame.getDesktop().add(newTableDialog);
|
||||
|
|
Loading…
Add table
Reference in a new issue