[Peek] fixes and enhancements (#25963)

This commit is contained in:
Seraphima Zykova
2023-05-12 15:34:20 +02:00
committed by GitHub
parent 912061d100
commit a3227da634
7 changed files with 62 additions and 18 deletions

View File

@@ -37,6 +37,7 @@ namespace Peek.UI
public App()
{
InitializeComponent();
Logger.InitializeLogger("\\Peek\\Logs");
Host = Microsoft.Extensions.Hosting.Host.
CreateDefaultBuilder().

View File

@@ -42,7 +42,15 @@ namespace Peek.UI
public void Initialize()
{
Items = NeighboringItemsQuery.GetNeighboringItems();
try
{
Items = NeighboringItemsQuery.GetNeighboringItems();
}
catch (Exception ex)
{
Logger.LogError("Failed to get File Explorer Items: " + ex.Message);
}
CurrentIndex = 0;
if (Items != null && Items.Count > 0)