Skip to content

Commit 7ee75d0

Browse files
committed
More library panel fixes
1 parent 9bcd721 commit 7ee75d0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Source/Components/WelcomePanel.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -994,6 +994,7 @@ class WelcomePanel final : public Component
994994
auto patchFile = file.getChildFile(patchName);
995995
if(patchFile.existsAsFile()) {
996996
allPatches.add({ patchFile, hash(title + author), installTime });
997+
continue;
997998
}
998999
}
9991000
}
@@ -1003,12 +1004,11 @@ class WelcomePanel final : public Component
10031004
}
10041005
for (auto& subfile : OSUtils::iterateDirectory(file, false, false)) {
10051006
if (subfile.hasFileExtension("pd")) {
1006-
if (metaFileExists) {
1007-
allPatches.add({ subfile, hash(title + author), installTime });
1008-
} else {
1007+
if (!metaFileExists) {
10091008
title = subfile.getFileNameWithoutExtension();
10101009
installTime = 0;
10111010
}
1011+
allPatches.add({ subfile, hash(title + author), installTime });
10121012
break;
10131013
}
10141014
}

0 commit comments

Comments
 (0)