@@ -610,11 +610,11 @@ private void ToggleExternalPreview(string path)
610
610
{
611
611
if ( ! ExternalPreviewOpen )
612
612
{
613
- _ = OpenQuickLookPreviewAsync ( path ) ;
613
+ _ = OpenQuickLookPreviewAsync ( path ) . ConfigureAwait ( false ) ;
614
614
}
615
615
else
616
616
{
617
- _ = CloseQuickLookPreviewAsync ( ) ;
617
+ _ = CloseQuickLookPreviewAsync ( ) . ConfigureAwait ( false ) ;
618
618
}
619
619
}
620
620
@@ -652,12 +652,12 @@ private void UpdatePreview()
652
652
// Should use external preview for selected result
653
653
if ( ExternalPreviewOpen )
654
654
{
655
- _ = ToggleQuickLookPreviewAsync ( path , true ) ;
655
+ _ = ToggleQuickLookPreviewAsync ( path , true ) . ConfigureAwait ( false ) ;
656
656
}
657
657
else if ( PreviewVisible )
658
658
{
659
659
// When internal is open and select a result that should use external preview
660
- _ = OpenQuickLookPreviewAsync ( path ) ;
660
+ _ = OpenQuickLookPreviewAsync ( path ) . ConfigureAwait ( false ) ;
661
661
HideInternalPreview ( ) ;
662
662
}
663
663
}
@@ -670,7 +670,7 @@ private void UpdatePreview()
670
670
else if ( ExternalPreviewOpen )
671
671
{
672
672
// When external is open and select a result that can't use external preview
673
- _ = CloseQuickLookPreviewAsync ( ) ;
673
+ _ = CloseQuickLookPreviewAsync ( ) . ConfigureAwait ( false ) ;
674
674
ShowInternalPreview ( ) ;
675
675
}
676
676
}
@@ -1114,7 +1114,7 @@ public async void Hide()
1114
1114
1115
1115
if ( ExternalPreviewOpen )
1116
1116
{
1117
- _ = CloseQuickLookPreviewAsync ( ) ;
1117
+ _ = CloseQuickLookPreviewAsync ( ) . ConfigureAwait ( false ) ;
1118
1118
}
1119
1119
1120
1120
if ( ! SelectedIsFromQueryResults ( ) )
0 commit comments