Skip to content

Commit

Permalink
Allow JFileChooser to actually choose the Darkest Dungeon .app bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
robojumper committed Aug 9, 2018
1 parent 403f81d commit b2fb63d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
displayname=Darkest Dungeon Save Editor
version=v0.0.62
version=v0.0.63
githuburl=https://github.com/robojumper/DarkestDungeonSaveEditor
releasesurl=https://api.github.com/repos/robojumper/DarkestDungeonSaveEditor/releases/latest
jarname=DDSaveEditor
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,7 @@ public void run() {
private static final void directoryChooser(String def, Consumer<String> onSuccess) {
JFileChooser chooser = new JFileChooser();
chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
chooser.putClientProperty("JFileChooser.appBundleIsTraversable", "always");
int result = chooser.showOpenDialog(null);
if (result == JFileChooser.APPROVE_OPTION) {
onSuccess.accept(chooser.getSelectedFile().getAbsolutePath());
Expand Down

0 comments on commit b2fb63d

Please sign in to comment.