diff options
| author | 2025-10-17 18:30:39 +0200 | |
|---|---|---|
| committer | 2025-10-17 17:30:39 +0100 | |
| commit | 90942d2bd93e322bfe3227d467ba7a3e672f86a4 (patch) | |
| tree | 84bd27ca96cd1a65417eb4fa9c24b7675c2cca92 /enigma-swing | |
| parent | Color unobfuscated tokens in blue (#569) (diff) | |
| download | enigma-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.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 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; | |||
| 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()); |