mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-28 02:30:05 +00:00
Refactored some directory iteration code and other minor clean-ups.
This commit is contained in:
parent
5bbe222266
commit
a7e824032f
37 changed files with 1692 additions and 2016 deletions
|
|
@ -231,7 +231,7 @@ void FileBrowserComponent::setRoot (const File& newRootDirectory)
|
|||
String path (newRootDirectory.getFullPathName());
|
||||
|
||||
if (path.isEmpty())
|
||||
path += File::separator;
|
||||
path = File::separatorString;
|
||||
|
||||
StringArray rootNames, rootPaths;
|
||||
getRoots (rootNames, rootPaths);
|
||||
|
|
@ -259,7 +259,7 @@ void FileBrowserComponent::setRoot (const File& newRootDirectory)
|
|||
|
||||
String currentRootName (currentRoot.getFullPathName());
|
||||
if (currentRootName.isEmpty())
|
||||
currentRootName += File::separator;
|
||||
currentRootName = File::separatorString;
|
||||
|
||||
currentPathBox->setText (currentRootName, true);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue