Skip to content

Commit

Permalink
Fixed file loading bug in root directory
Browse files Browse the repository at this point in the history
  • Loading branch information
evanobenauer committed Aug 14, 2023
1 parent cdc5cd5 commit 47b52e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/ejo/csviewer/scenes/FileSelectScene.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public class FileSelectScene extends Scene {

private final ButtonUI buttonEnter = new ButtonUI("Launch!",Vector.NULL,new Vector(200,40), new ColorE(50,150,50,200), ButtonUI.MouseButton.LEFT,() -> {
mainSettingManager.saveAll();
File file = new File(filePath.get() + "/" + fileName.get() + ".csv");
File file = new File((filePath.get().equals("") ? "" : filePath.get() + "/") + fileName.get() + ".csv");
if (file.exists() && !fileName.get().equals("")) {
getWindow().setScene(new EditorScene(new FileCSV(filePath.get(), fileName.get())));
}
Expand Down

0 comments on commit 47b52e5

Please sign in to comment.