diff options
| -rw-r--r-- | enigma-swing/src/main/java/cuchaz/enigma/gui/elements/MenuBar.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/enigma-swing/src/main/java/cuchaz/enigma/gui/elements/MenuBar.java b/enigma-swing/src/main/java/cuchaz/enigma/gui/elements/MenuBar.java index e891786..5f384ac 100644 --- a/enigma-swing/src/main/java/cuchaz/enigma/gui/elements/MenuBar.java +++ b/enigma-swing/src/main/java/cuchaz/enigma/gui/elements/MenuBar.java | |||
| @@ -6,6 +6,7 @@ import java.io.File; | |||
| 6 | import java.io.IOException; | 6 | import java.io.IOException; |
| 7 | import java.nio.file.Files; | 7 | import java.nio.file.Files; |
| 8 | import java.nio.file.Path; | 8 | import java.nio.file.Path; |
| 9 | import java.util.ArrayList; | ||
| 9 | import java.util.Arrays; | 10 | import java.util.Arrays; |
| 10 | import java.util.List; | 11 | import java.util.List; |
| 11 | import java.util.Locale; | 12 | import java.util.Locale; |
| @@ -244,7 +245,7 @@ public class MenuBar { | |||
| 244 | 245 | ||
| 245 | // checks if the file name corresponds to an existing file | 246 | // checks if the file name corresponds to an existing file |
| 246 | if (paths.stream().allMatch(Files::exists)) { | 247 | if (paths.stream().allMatch(Files::exists)) { |
| 247 | this.gui.getController().openJar(paths, gui.getController().project.getLibraryPaths()); | 248 | this.gui.getController().openJar(paths, new ArrayList<>()); |
| 248 | } | 249 | } |
| 249 | 250 | ||
| 250 | UiConfig.setLastSelectedDir(d.getCurrentDirectory().getAbsolutePath()); | 251 | UiConfig.setLastSelectedDir(d.getCurrentDirectory().getAbsolutePath()); |