mirror of
https://github.com/magefree/mage.git
synced 2025-12-24 04:22:01 -08:00
fixed title + NPE on DeckEditor
This commit is contained in:
parent
3a96ff7933
commit
aa5e0baeee
2 changed files with 2 additions and 1 deletions
|
|
@ -765,6 +765,7 @@ public class MageFrame extends javax.swing.JFrame implements MageClient {
|
|||
public boolean connect(Connection connection) {
|
||||
client = new Client(instance);
|
||||
boolean result = client.connect(connection, version);
|
||||
setWindowTitle();
|
||||
if (result) {
|
||||
updateDatabase(connection.isForceDBComparison(), serverState);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -191,7 +191,7 @@ public class DeckEditorPanel extends javax.swing.JPanel {
|
|||
//this.cardTableSelector.loadCards(this.bigCard);
|
||||
this.btnExit.setVisible(true);
|
||||
this.btnImport.setVisible(true);
|
||||
if (!MageFrame.getClient().getServerState().isTestMode()) {
|
||||
if (MageFrame.getClient().getServerState() != null && !MageFrame.getClient().getServerState().isTestMode()) {
|
||||
this.btnLoad.setVisible(true);
|
||||
}
|
||||
this.deckArea.showSideboard(true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue