Skip to content

Commit aae3dfe

Browse files
Fix: Fixed issue where credentials dialog wasn't shown when accessing FTP (#12329)
1 parent 386b0dd commit aae3dfe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Files.App/ViewModels/ItemViewModel.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1442,15 +1442,15 @@ public async Task EnumerateItemsFromSpecialFolderAsync(string path)
14421442
client.Port = FtpHelpers.GetFtpPort(path);
14431443
client.Credentials = FtpManager.Credentials.Get(client.Host, FtpManager.Anonymous);
14441444

1445-
static Task<FtpProfile?> WrappedAutoConnectFtpAsync(AsyncFtpClient client)
1445+
static async Task<FtpProfile?> WrappedAutoConnectFtpAsync(AsyncFtpClient client)
14461446
{
14471447
try
14481448
{
1449-
return client.AutoConnect();
1449+
return await client.AutoConnect();
14501450
}
14511451
catch (FtpAuthenticationException)
14521452
{
1453-
return Task.FromResult<FtpProfile?>(null);
1453+
return null;
14541454
}
14551455

14561456
throw new InvalidOperationException();

0 commit comments

Comments
 (0)