mirror of
https://github.com/correl/mage.git
synced 2024-11-29 03:00:12 +00:00
Merge fix
This commit is contained in:
parent
9486dce144
commit
bcbd1e87a6
1 changed files with 4 additions and 1 deletions
|
@ -36,6 +36,7 @@ import javax.swing.JOptionPane;
|
|||
import javax.swing.SwingWorker;
|
||||
|
||||
import mage.cards.repository.CardRepository;
|
||||
import mage.cards.repository.ExpansionRepository;
|
||||
import mage.choices.Choice;
|
||||
import mage.choices.ChoiceImpl;
|
||||
import mage.client.MageFrame;
|
||||
|
@ -456,7 +457,9 @@ public class ConnectDialog extends MageDialog {
|
|||
connection.setPort(Integer.valueOf(this.txtPort.getText().trim()));
|
||||
connection.setUsername(this.txtUserName.getText().trim());
|
||||
connection.setPassword(this.txtPassword.getText().trim());
|
||||
boolean redownloadDatabase = CardRepository.instance.findCard("Island") == null;
|
||||
|
||||
// force to redownload db
|
||||
boolean redownloadDatabase = (ExpansionRepository.instance.getSetByCode("GRN") == null || CardRepository.instance.findCard("Island") == null);
|
||||
connection.setForceDBComparison(this.chkForceUpdateDB.isSelected() || redownloadDatabase);
|
||||
String allMAC = "";
|
||||
try {
|
||||
|
|
Loading…
Reference in a new issue