Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Hiraoka committed Dec 9, 2020
2 parents 7e3bd48 + 7fea6b1 commit 63132bc
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/main/java/featurecat/lizzie/gui/MainFrame.java
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,9 @@ public void saveFile() {
}
try {
SGFParser.save(Lizzie.board, file.getPath());
filesystem.put("last-folder", file.getParent());
if (file.getParent() != null) {
filesystem.put("last-folder", file.getParent());
}
} catch (IOException err) {
JOptionPane.showConfirmDialog(
null,
Expand Down Expand Up @@ -415,7 +417,9 @@ public void loadFile(File file) {
} else {
GIBParser.load(file.getPath());
}
filesystem.put("last-folder", file.getParent());
if (file.getParent() != null) {
filesystem.put("last-folder", file.getParent());
}
} catch (IOException err) {
JOptionPane.showConfirmDialog(
null,
Expand Down

0 comments on commit 63132bc

Please sign in to comment.