mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-01-19 15:03:36 +08:00
Fix a crash issue.
This commit is contained in:
parent
50f6044a2f
commit
61dc148d34
@ -98,7 +98,7 @@ namespace Wox.ImageLoader
|
|||||||
{
|
{
|
||||||
img = new BitmapImage(new Uri(path));
|
img = new BitmapImage(new Uri(path));
|
||||||
}
|
}
|
||||||
else if (selfExts.Contains(ext))
|
else if (selfExts.Contains(ext) && File.Exists(path))
|
||||||
{
|
{
|
||||||
img = GetIcon(path);
|
img = GetIcon(path);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user