Skip to content

Commit 8da88bd

Browse files
Hide fail toast for closing
1 parent e248fcb commit 8da88bd

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

Flow.Launcher/Helper/QuickLookHelper.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,9 @@ public static async Task<bool> ToggleQuickLookAsync(string path, bool sendFailTo
4141
return success;
4242
}
4343

44-
public static async Task<bool> CloseQuickLookAsync(bool sendFailToast = true)
44+
public static async Task<bool> CloseQuickLookAsync()
4545
{
4646
bool success = await SendQuickLookPipeMsgAsync(pipeMessageClose);
47-
if (sendFailToast && !success)
48-
{
49-
ShowQuickLookUnavailableToast();
50-
}
5147
return success;
5248
}
5349

Flow.Launcher/ViewModel/MainViewModel.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -632,9 +632,9 @@ private async Task OpenExternalPreviewAsync(string path, bool sendFailToast = tr
632632
}
633633
}
634634

635-
private async Task CloseExternalPreviewAsync(bool sendFailToast = true)
635+
private async Task CloseExternalPreviewAsync()
636636
{
637-
bool success = await QuickLookHelper.CloseQuickLookAsync(sendFailToast).ConfigureAwait(false);
637+
bool success = await QuickLookHelper.CloseQuickLookAsync().ConfigureAwait(false);
638638
if (success)
639639
{
640640
ExternalPreviewOpen = false;
@@ -1105,7 +1105,7 @@ public async void Hide()
11051105
MainWindowOpacity = 0;
11061106

11071107
if (Settings.UseExternalPreview)
1108-
_ = CloseExternalPreviewAsync(false);
1108+
_ = CloseExternalPreviewAsync();
11091109

11101110
if (!SelectedIsFromQueryResults())
11111111
{

0 commit comments

Comments
 (0)