Skip to content
This repository was archived by the owner on Aug 18, 2024. It is now read-only.

Commit c775c90

Browse files
committed
0.5.2
1 parent f8e27b1 commit c775c90

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ plugins {
44
}
55

66
group 'com.redlimerl'
7-
version '0.5'
7+
version '0.5.2'
88
repositories {
99
mavenCentral()
1010
}

src/main/java/com/pistacium/modcheck/ModCheckConstants.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
public class ModCheckConstants {
44

5-
public static final String APPLICATION_VERSION = "0.5";
5+
public static final String APPLICATION_VERSION = "0.5.2";
66

77
}

src/main/java/com/pistacium/modcheck/ModCheckFrame.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,13 @@ public Object getItem() {
103103
File[] files = pathSelector.getSelectedFiles();
104104
if (pathSelector.getSelectedFiles() != null && showDialog == JFileChooser.APPROVE_OPTION) {
105105
selectDirs = files;
106+
String parentDir = "";
106107
StringBuilder stringBuilder = new StringBuilder();
107108
for (File selectDir : selectDirs) {
108-
stringBuilder.append(selectDir.toPath()).append("<br>");
109+
stringBuilder.append(parentDir.isEmpty() ? selectDir.getPath() : selectDir.getPath().replace(parentDir, "")).append(", ");
110+
parentDir = selectDir.getParent();
109111
}
110-
selectedDirLabel.setText("<html>Selected Instances : <br>" + stringBuilder.substring(0, stringBuilder.length() - (stringBuilder.length() != 0 ? 4 : 0)) + "</html>");
112+
selectedDirLabel.setText("<html>Selected Instances : <br>" + stringBuilder.substring(0, stringBuilder.length() - (stringBuilder.length() != 0 ? 2 : 0)) + "</html>");
111113
}
112114
});
113115

0 commit comments

Comments
 (0)