Browse Source

Fixed a bug in the DemoRunner on Mac causing the demo code to not be displayed

tags/2021-05-28
ed 7 years ago
parent
commit
92e5631968
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      examples/DemoRunner/Source/Demos/JUCEDemos.cpp

+ 1
- 1
examples/DemoRunner/Source/Demos/JUCEDemos.cpp View File

@@ -53,7 +53,7 @@ void JUCEDemos::registerDemo (std::function<Component*()> constructorCallback, c
{
#if JUCE_MAC
auto f = File::getSpecialLocation (File::currentExecutableFile)
.getParentDirectory().getParentDirectory().getChildFile ("Resources").getChildFile (filePath);
.getParentDirectory().getParentDirectory().getChildFile ("Resources");
#else
auto f = findExamplesDirectoryFromExecutable (File::getSpecialLocation (File::currentApplicationFile));
#endif


Loading…
Cancel
Save