fix: show only directories in profiles list
This commit is contained in:
parent
4eb068a2a1
commit
aa09edda1b
1 changed files with 3 additions and 1 deletions
|
|
@ -36,8 +36,10 @@ public class ProfilesList extends ContainerObjectSelectionList<ProfilesList.Prof
|
|||
try (DirectoryStream<Path> directoryStream = Files.newDirectoryStream(Profiles.PROFILES_DIRECTORY)) {
|
||||
List<Path> profileList = new ArrayList<>();
|
||||
for (Path profile : directoryStream) {
|
||||
if (Files.isDirectory(profile)) {
|
||||
profileList.add(profile);
|
||||
}
|
||||
}
|
||||
|
||||
// Sort the list alphabetically based on the profile names
|
||||
profileList.sort(Comparator.comparing(p -> p.getFileName().toString()));
|
||||
|
|
|
|||
Loading…
Reference in a new issue