mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 19:26:39 +02:00
[Peek] fixes and enhancements (#25963)
This commit is contained in:
@@ -37,6 +37,7 @@ namespace Peek.UI
|
||||
public App()
|
||||
{
|
||||
InitializeComponent();
|
||||
Logger.InitializeLogger("\\Peek\\Logs");
|
||||
|
||||
Host = Microsoft.Extensions.Hosting.Host.
|
||||
CreateDefaultBuilder().
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user