Moved archiving configuration to MageFrame

This commit is contained in:
North 2012-09-11 13:25:21 +03:00
parent dbe0d9170c
commit 964bf0ed13
2 changed files with 7 additions and 3 deletions

View file

@ -34,6 +34,9 @@
package mage.client;
import de.schlichtherle.truezip.file.TArchiveDetector;
import de.schlichtherle.truezip.file.TConfig;
import de.schlichtherle.truezip.fs.FsOutputOption;
import mage.cards.Card;
import mage.cards.decks.Deck;
import mage.client.cards.BigCard;
@ -174,6 +177,10 @@ public class MageFrame extends javax.swing.JFrame implements MageClient {
}
});
TConfig config = TConfig.get();
config.setArchiveDetector(new TArchiveDetector("zip"));
config.getOutputPreferences().set(FsOutputOption.STORE);
try {
UIManager.put("desktop", new Color(0, 0, 0, 0));
UIManager.setLookAndFeel("com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel");

View file

@ -66,9 +66,6 @@ public class DownloadPictures extends DefaultBoundedRangeModel implements Runnab
public static void main(String[] args) {
startDownload(null, null, null);
TConfig config = TConfig.get();
config.setArchiveDetector(new TArchiveDetector("zip"));
config.getOutputPreferences().set(FsOutputOption.STORE);
}
public static void startDownload(JFrame frame, Set<Card> allCards, String imagesPath) {