@@ -1,4 +1,5 @@
<Window
+ CanResize="False"
ExtendClientAreaChromeHints="SystemChrome"
ExtendClientAreaTitleBarHeightHint="-1"
SizeToContent="WidthAndHeight"
@@ -14,6 +14,10 @@ public static class GetThumbnails
{
if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
+ if (fileInfo is null || !fileInfo.Exists)
+ {
+ return null;
+ }
await using var stream = FileStreamUtils.GetOptimizedFileStream(fileInfo);
var thumb = Bitmap.DecodeToHeight(stream, (int)height);
return thumb;
@@ -125,7 +125,7 @@ public static class QuickLoad
}, DispatcherPriority.Send);
- Dispatcher.UIThread.Post(() => WindowFunctions.CenterWindowOnScreen(), DispatcherPriority.Render);
+ Dispatcher.UIThread.Post(() => WindowFunctions.CenterWindowOnScreen(), DispatcherPriority.Send);
}
else