From 89fa841d52f495c6431af77978c535d3c4ff123a Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Sat, 25 Jan 2014 15:55:58 +0100 Subject: [PATCH] Set Version 1.3.0. --- .../src/main/java/mage/client/MageFrame.java | 14 +++++++++++--- .../java/mage/client/game/MultiConnectTest.java | 2 +- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/Mage.Client/src/main/java/mage/client/MageFrame.java b/Mage.Client/src/main/java/mage/client/MageFrame.java index d2de8e0181..adcfa29483 100644 --- a/Mage.Client/src/main/java/mage/client/MageFrame.java +++ b/Mage.Client/src/main/java/mage/client/MageFrame.java @@ -152,7 +152,7 @@ public class MageFrame extends javax.swing.JFrame implements MageClient { private static Preferences prefs = Preferences.userNodeForPackage(MageFrame.class); private JLabel title; private Rectangle titleRectangle; - private static final MageVersion version = new MageVersion(1, 2, 0, ""); + private static final MageVersion version = new MageVersion(1, 3, 0, ""); private UUID clientId; private static MagePane activeFrame; private static boolean liteMode = false; @@ -617,8 +617,16 @@ public class MageFrame extends javax.swing.JFrame implements MageClient { public void showDraft(UUID draftId) { try { - DraftPane draftPane = new DraftPane(); - desktopPane.add(draftPane, JLayeredPane.DEFAULT_LAYER); + DraftPane draftPane = null; + for(Component component :desktopPane.getComponents()) { + if (component instanceof DraftPane) { + draftPane = (DraftPane) component; + } + } + if (draftPane == null) { + draftPane = new DraftPane(); + desktopPane.add(draftPane, JLayeredPane.DEFAULT_LAYER); + } draftPane.setMaximum(true); draftPane.setVisible(true); draftPane.showDraft(draftId); diff --git a/Mage.Client/src/test/java/mage/client/game/MultiConnectTest.java b/Mage.Client/src/test/java/mage/client/game/MultiConnectTest.java index 958cc88b47..45c9030177 100644 --- a/Mage.Client/src/test/java/mage/client/game/MultiConnectTest.java +++ b/Mage.Client/src/test/java/mage/client/game/MultiConnectTest.java @@ -30,7 +30,7 @@ public class MultiConnectTest { private static final CountDownLatch latch = new CountDownLatch(USER_CONNECT_COUNT); - private static final MageVersion version = new MageVersion(1, 2, 0, ""); + private static final MageVersion version = new MageVersion(1, 3, 0, ""); private static volatile int connected;