Skip to content

Commit c86d607

Browse files
author
SeTSeR
committed
Fix
1 parent 42d1857 commit c86d607

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/com/temporaryteam/noticeditor/view/NoticeController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,8 @@ else if(source.equals(saveItem)) {
204204
else if((source.equals(openItem))||(source.equals(saveAsItem))) {
205205
try {
206206
File selected = null;
207+
if(openedFile!=null) chooser.setInitialDirectory(new File(openedFile.getParent()));
207208
if(source.equals(openItem)) {
208-
if(openedFile!=null) chooser.setInitialDirectory(new File(openedFile.getParent()));
209209
selected = chooser.showOpenDialog(main.getPrimaryStage());
210210
}
211211
else if(source.equals(saveAsItem)) {

0 commit comments

Comments
 (0)