forked from External/mage
Fixed too large temp files creation for svg icons on startup
This commit is contained in:
parent
8b8392f42c
commit
09f5af154e
4 changed files with 46 additions and 22 deletions
|
|
@ -325,6 +325,7 @@ public class DeckGeneratorDialog {
|
|||
// Generated deck has a nice unique name which corresponds to the timestamp at which it was created.
|
||||
String deckName = "Generated-Deck-" + dateFormat.format(new Date());
|
||||
File tmp = new File(tempDir + File.separator + deckName + ".dck");
|
||||
tmp.getParentFile().mkdirs();
|
||||
tmp.createNewFile();
|
||||
deck.setName(deckName);
|
||||
Sets.saveDeck(tmp.getAbsolutePath(), deck.getDeckCardLists());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue