mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 04:52:07 -08:00
Set Version 1.3.0.
This commit is contained in:
parent
ad71ec6aad
commit
89fa841d52
2 changed files with 12 additions and 4 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue