fix: show only directories in profiles list

This commit is contained in:
trafficlunar 2025-03-01 09:54:51 +00:00
parent 4eb068a2a1
commit aa09edda1b

View file

@ -36,7 +36,9 @@ 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) {
profileList.add(profile);
if (Files.isDirectory(profile)) {
profileList.add(profile);
}
}
// Sort the list alphabetically based on the profile names