mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 10:18:01 +00:00
- Prevented automatic deletion of drafts.
This commit is contained in:
@@ -398,6 +398,9 @@ public class Gui_NewGame extends JFrame implements NewConstants, NewConstants.LA
|
||||
}
|
||||
}//if
|
||||
|
||||
//refresh decks:
|
||||
allDecks = getDecks();
|
||||
|
||||
editor.setVisible(true);
|
||||
dispose();
|
||||
}
|
||||
|
||||
@@ -299,12 +299,14 @@ public class NewDeckIO implements DeckIO {
|
||||
out.close();
|
||||
}
|
||||
}
|
||||
/*
|
||||
//delete the files that were not written out: the decks that were deleted
|
||||
for(File file:files) {
|
||||
for(int i = 0; i < 8; i++)
|
||||
new File(file, i + ".dck").delete();
|
||||
file.delete();
|
||||
}
|
||||
*/
|
||||
} catch(IOException ex) {
|
||||
ErrorViewer.showError(ex);
|
||||
throw new RuntimeException("DeckIO : write() error, " + ex.getMessage());
|
||||
|
||||
Reference in New Issue
Block a user