Skip to content

Commit 90942d2

Browse files
authored
Fix opening jars via the menu bar not being possible (#571)
1 parent 64b1408 commit 90942d2

File tree

1 file changed

+2
-1
lines changed
  • enigma-swing/src/main/java/cuchaz/enigma/gui/elements

1 file changed

+2
-1
lines changed

enigma-swing/src/main/java/cuchaz/enigma/gui/elements/MenuBar.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import java.io.IOException;
77
import java.nio.file.Files;
88
import java.nio.file.Path;
9+
import java.util.ArrayList;
910
import java.util.Arrays;
1011
import java.util.List;
1112
import java.util.Locale;
@@ -244,7 +245,7 @@ private void onOpenJarClicked() {
244245

245246
// checks if the file name corresponds to an existing file
246247
if (paths.stream().allMatch(Files::exists)) {
247-
this.gui.getController().openJar(paths, gui.getController().project.getLibraryPaths());
248+
this.gui.getController().openJar(paths, new ArrayList<>());
248249
}
249250

250251
UiConfig.setLastSelectedDir(d.getCurrentDirectory().getAbsolutePath());

0 commit comments

Comments
 (0)