Skip to content

Commit

Permalink
Fix: Fixed issue where ftp addresses were not displayed in the path b…
Browse files Browse the repository at this point in the history
…ar (#15033)
  • Loading branch information
hishitetsu committed Mar 25, 2024
1 parent ba9f655 commit cab90bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Files.App/Utils/Storage/Helpers/StorageFileExtensions.cs
Expand Up @@ -144,7 +144,7 @@ public static async Task<List<PathBoxItem>> GetDirectoryPathComponentsWithDispla
{
BaseStorageFolder folder = await FilesystemTasks.Wrap(() => DangerousGetFolderFromPathAsync(item.Path));

if (folder is not null)
if (!string.IsNullOrEmpty(folder?.DisplayName))
item.Title = folder.DisplayName;
}
}
Expand Down Expand Up @@ -297,7 +297,7 @@ private static PathBoxItem GetPathItem(string component, string path)
{
title = "SidebarNetworkDrives".GetLocalizedResource();
}
else if (component.Contains(':', StringComparison.Ordinal))
else if (component.EndsWith(':'))
{
var drivesViewModel = Ioc.Default.GetRequiredService<DrivesViewModel>();

Expand Down

0 comments on commit cab90bc

Please sign in to comment.