Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Plugins/SimpleFileBrowser/Scripts/FileBrowser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1070,7 +1070,7 @@ private void InitializeQuickLinks()
AddQuickLink( m_skin.DriveIcon, "Files", Application.persistentDataPath );
#endif

#if UNITY_STANDALONE_OSX
#if UNITY_EDITOR_OSX || ( !UNITY_EDITOR && UNITY_STANDALONE_OSX )
// Add a quick link for user directory on Mac OS
string userDirectory = Environment.GetFolderPath( Environment.SpecialFolder.MyDocuments );
if( !string.IsNullOrEmpty( userDirectory ) )
Expand All @@ -1083,7 +1083,7 @@ private void InitializeQuickLinks()
{
QuickLink quickLink = quickLinks[i];
string quickLinkPath = Environment.GetFolderPath( quickLink.target );
#if UNITY_STANDALONE_OSX
#if UNITY_EDITOR_OSX || ( !UNITY_EDITOR && UNITY_STANDALONE_OSX )
// Documents folder must be appended manually on Mac OS
if( quickLink.target == Environment.SpecialFolder.MyDocuments && !string.IsNullOrEmpty( quickLinkPath ) )
quickLinkPath = Path.Combine( quickLinkPath, "Documents" );
Expand Down Expand Up @@ -1198,7 +1198,7 @@ private void RefreshDriveQuickLinks()
if( string.IsNullOrEmpty( drives[i] ) )
continue;

#if UNITY_STANDALONE_OSX
#if UNITY_EDITOR_OSX || ( !UNITY_EDITOR && UNITY_STANDALONE_OSX )
// There are a number of useless drives listed on Mac OS, filter them
if( drives[i] == "/" )
{
Expand Down