summaryrefslogtreecommitdiff
path: root/enigma-swing
diff options
context:
space:
mode:
authorGravatar Geolykt2025-10-17 18:30:39 +0200
committerGravatar GitHub2025-10-17 17:30:39 +0100
commit90942d2bd93e322bfe3227d467ba7a3e672f86a4 (patch)
tree84bd27ca96cd1a65417eb4fa9c24b7675c2cca92 /enigma-swing
parentColor unobfuscated tokens in blue (#569) (diff)
downloadenigma-90942d2bd93e322bfe3227d467ba7a3e672f86a4.tar.gz
enigma-90942d2bd93e322bfe3227d467ba7a3e672f86a4.tar.xz
enigma-90942d2bd93e322bfe3227d467ba7a3e672f86a4.zip
Fix opening jars via the menu bar not being possible (#571)
Diffstat (limited to 'enigma-swing')
-rw-r--r--enigma-swing/src/main/java/cuchaz/enigma/gui/elements/MenuBar.java3
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 e8917864..5f384ac2 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;
6import java.io.IOException; 6import java.io.IOException;
7import java.nio.file.Files; 7import java.nio.file.Files;
8import java.nio.file.Path; 8import java.nio.file.Path;
9import java.util.ArrayList;
9import java.util.Arrays; 10import java.util.Arrays;
10import java.util.List; 11import java.util.List;
11import java.util.Locale; 12import 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());