Skip to content

Commit

Permalink
override the AlwaysPreview setting in flow
Browse files Browse the repository at this point in the history
  • Loading branch information
jjw24 committed Jun 12, 2024
1 parent c0e900a commit 9ceccd7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ public async Task OpenPreviewAsync(string path, bool sendFailToast = true)

public async Task<List<Result>> QueryAsync(Query query, CancellationToken token) => new List<Result>();

// Due to QuickLook's size and position not persisted after hiding, and resets itself in the
// center screen position when appears, this is set to false to override the AlwaysPreview setting in flow
// so that when the query window appears QuickLook does not also appear and block the view.
public bool AllowAlwaysPreview() => false;

public string GetTranslatedPluginTitle()
{
return Context.API.GetTranslation("plugin_name");
Expand Down

0 comments on commit 9ceccd7

Please sign in to comment.