mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 02:38:02 +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
|
}//if
|
||||||
|
|
||||||
|
//refresh decks:
|
||||||
|
allDecks = getDecks();
|
||||||
|
|
||||||
editor.setVisible(true);
|
editor.setVisible(true);
|
||||||
dispose();
|
dispose();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -299,12 +299,14 @@ public class NewDeckIO implements DeckIO {
|
|||||||
out.close();
|
out.close();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/*
|
||||||
//delete the files that were not written out: the decks that were deleted
|
//delete the files that were not written out: the decks that were deleted
|
||||||
for(File file:files) {
|
for(File file:files) {
|
||||||
for(int i = 0; i < 8; i++)
|
for(int i = 0; i < 8; i++)
|
||||||
new File(file, i + ".dck").delete();
|
new File(file, i + ".dck").delete();
|
||||||
file.delete();
|
file.delete();
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
} catch(IOException ex) {
|
} catch(IOException ex) {
|
||||||
ErrorViewer.showError(ex);
|
ErrorViewer.showError(ex);
|
||||||
throw new RuntimeException("DeckIO : write() error, " + ex.getMessage());
|
throw new RuntimeException("DeckIO : write() error, " + ex.getMessage());
|
||||||
|
|||||||
Reference in New Issue
Block a user