StreamCopyCommandHandler, Async rename

This commit is contained in:
2022-02-16 00:12:09 +01:00
parent 89d891918c
commit f809f0a640
41 changed files with 529 additions and 182 deletions

View File

@@ -219,7 +219,7 @@ namespace FileTime.Avalonia.Services
}
else if (tabContainer == null)
{
var newContainer = await _appState.SelectedTab.CurrentLocation.Container.Clone();
var newContainer = await _appState.SelectedTab.CurrentLocation.Container.CloneAsync();
var newTab = new Tab();
await newTab.Init(newContainer);
@@ -351,7 +351,7 @@ namespace FileTime.Avalonia.Services
//FIXME: check 'is Container'
if (currentSelectedItems.Count == 1)
{
if ((await currentSelectedItems[0].Resolve()) is IContainer container
if ((await currentSelectedItems[0].ResolveAsync()) is IContainer container
&& (await container.GetItems())?.Count > 0)
{
askForDelete = true;