Exception text, Icons

This commit is contained in:
2022-02-02 13:29:51 +01:00
parent 3e553dd448
commit d795ddcd11
11 changed files with 183 additions and 64 deletions

View File

@@ -50,7 +50,7 @@ namespace FileTime.Avalonia.Application
_selectedItem = value;
OnPropertyChanged("SelectedItem");
SelectedItemChanged();
SelectedItemChanged().Wait();
}
}
}
@@ -152,7 +152,7 @@ namespace FileTime.Avalonia.Application
}
var items = await _currentLocation.GetItems();
if (items != null && items.Count > 0)
if (items?.Count > 0)
{
foreach (var item in items)
{
@@ -206,7 +206,7 @@ namespace FileTime.Avalonia.Application
}
}
private async void SelectedItemChanged()
private async Task SelectedItemChanged()
{
try
{
@@ -215,6 +215,15 @@ namespace FileTime.Avalonia.Application
catch { }
}
public async Task SetCurrentSelectedItem(IItem newItem)
{
try
{
await Tab.SetCurrentSelectedItem(newItem);
}
catch { }
}
public async Task Open()
{
if (ChildContainer != null)