Skip to content

Commit f1005b2

Browse files
committed
Clean up path name
1 parent 2294639 commit f1005b2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Source/Components/WelcomePanel.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -838,7 +838,7 @@ class WelcomePanel final : public Component
838838
auto subTree = recentlyOpenedTree.getChild(i);
839839
auto patchFile = File(subTree.getProperty("Path").toString());
840840

841-
auto patchThumbnailBase = File(patchFile.getParentDirectory().getFullPathName() + "\\" + patchFile.getFileNameWithoutExtension() + "_thumb");
841+
auto patchThumbnailBase = File(patchFile.getParentDirectory().getChildFile(patchFile.getFileNameWithoutExtension()).getFullPathName() + "_thumb");
842842

843843
auto favourited = subTree.hasProperty("Pinned") && static_cast<bool>(subTree.getProperty("Pinned"));
844844
auto snapshotColour = LookAndFeel::getDefaultLookAndFeel().findColour(PlugDataColour::objectSelectedOutlineColourId).withAlpha(0.3f);

0 commit comments

Comments
 (0)