Skip to content

Commit 441d4cb

Browse files
Configure await for QuickLook calls
1 parent 9061da9 commit 441d4cb

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Flow.Launcher/ViewModel/MainViewModel.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -610,11 +610,11 @@ private void ToggleExternalPreview(string path)
610610
{
611611
if (!ExternalPreviewOpen)
612612
{
613-
_ = OpenQuickLookPreviewAsync(path);
613+
_ = OpenQuickLookPreviewAsync(path).ConfigureAwait(false);
614614
}
615615
else
616616
{
617-
_ = CloseQuickLookPreviewAsync();
617+
_ = CloseQuickLookPreviewAsync().ConfigureAwait(false);
618618
}
619619
}
620620

@@ -652,12 +652,12 @@ private void UpdatePreview()
652652
// Should use external preview for selected result
653653
if (ExternalPreviewOpen)
654654
{
655-
_ = ToggleQuickLookPreviewAsync(path, true);
655+
_ = ToggleQuickLookPreviewAsync(path, true).ConfigureAwait(false);
656656
}
657657
else if(PreviewVisible)
658658
{
659659
// When internal is open and select a result that should use external preview
660-
_ = OpenQuickLookPreviewAsync(path);
660+
_ = OpenQuickLookPreviewAsync(path).ConfigureAwait(false);
661661
HideInternalPreview();
662662
}
663663
}
@@ -670,7 +670,7 @@ private void UpdatePreview()
670670
else if (ExternalPreviewOpen)
671671
{
672672
// When external is open and select a result that can't use external preview
673-
_ = CloseQuickLookPreviewAsync();
673+
_ = CloseQuickLookPreviewAsync().ConfigureAwait(false);
674674
ShowInternalPreview();
675675
}
676676
}
@@ -1114,7 +1114,7 @@ public async void Hide()
11141114

11151115
if (ExternalPreviewOpen)
11161116
{
1117-
_ = CloseQuickLookPreviewAsync();
1117+
_ = CloseQuickLookPreviewAsync().ConfigureAwait(false);
11181118
}
11191119

11201120
if (!SelectedIsFromQueryResults())

0 commit comments

Comments
 (0)