mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Hide fail toast for closing
This commit is contained in:
parent
e248fcbca5
commit
8da88bd22a
2 changed files with 4 additions and 8 deletions
|
|
@ -41,13 +41,9 @@ namespace Flow.Launcher.Helper
|
|||
return success;
|
||||
}
|
||||
|
||||
public static async Task<bool> CloseQuickLookAsync(bool sendFailToast = true)
|
||||
public static async Task<bool> CloseQuickLookAsync()
|
||||
{
|
||||
bool success = await SendQuickLookPipeMsgAsync(pipeMessageClose);
|
||||
if (sendFailToast && !success)
|
||||
{
|
||||
ShowQuickLookUnavailableToast();
|
||||
}
|
||||
return success;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -632,9 +632,9 @@ namespace Flow.Launcher.ViewModel
|
|||
}
|
||||
}
|
||||
|
||||
private async Task CloseExternalPreviewAsync(bool sendFailToast = true)
|
||||
private async Task CloseExternalPreviewAsync()
|
||||
{
|
||||
bool success = await QuickLookHelper.CloseQuickLookAsync(sendFailToast).ConfigureAwait(false);
|
||||
bool success = await QuickLookHelper.CloseQuickLookAsync().ConfigureAwait(false);
|
||||
if (success)
|
||||
{
|
||||
ExternalPreviewOpen = false;
|
||||
|
|
@ -1105,7 +1105,7 @@ namespace Flow.Launcher.ViewModel
|
|||
MainWindowOpacity = 0;
|
||||
|
||||
if (Settings.UseExternalPreview)
|
||||
_ = CloseExternalPreviewAsync(false);
|
||||
_ = CloseExternalPreviewAsync();
|
||||
|
||||
if (!SelectedIsFromQueryResults())
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue