Exception text, Icons
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user