mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 04:52:07 -08:00
Moved archiving configuration to MageFrame
This commit is contained in:
parent
dbe0d9170c
commit
964bf0ed13
2 changed files with 7 additions and 3 deletions
|
|
@ -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");
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue