From 324c4317ff3da04ffbfa669024ba681fd131a170 Mon Sep 17 00:00:00 2001 From: Jeremy Date: Mon, 25 Aug 2025 22:50:14 +1000 Subject: [PATCH 1/2] add slight delay to fix re-querying after closing tab --- Main.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Main.cs b/Main.cs index 8fe31ae..fdc6f01 100644 --- a/Main.cs +++ b/Main.cs @@ -44,8 +44,9 @@ public Task> QueryAsync(Query query, CancellationToken token) if (c.SpecialKeyState.CtrlPressed) { tab.CloseTab(); - // Re-query to remove closed tab from the results - Context.API.ChangeQuery(query.RawQuery, true); + // Re-query to remove closed tab from the results. + // Add a slight delay so re-query can pick up the tab elements again, 200ms was the right amount after testing + Task.Delay(200).ContinueWith(_ => Context.API.ChangeQuery(query.RawQuery, requery: true)); } else tab.ActivateTab(); From 416b665813bd9406fe0e3bcccc5557353773fec0 Mon Sep 17 00:00:00 2001 From: Jeremy Date: Mon, 25 Aug 2025 22:54:23 +1000 Subject: [PATCH 2/2] version bump --- plugin.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin.json b/plugin.json index 4dc0803..ff27a69 100644 --- a/plugin.json +++ b/plugin.json @@ -4,7 +4,7 @@ "Name": "Browser Tabs", "Description": "Search, activate, or close browser tabs. A centralized plugin for managing all open tabs in your browser", "Author": "Jeremy Wu", - "Version": "1.0.0", + "Version": "1.0.1", "Language": "csharp", "Website": "https://github.com/Flow-Launcher/Flow.Launcher.Plugin.BrowserTabs", "ExecuteFileName": "Flow.Launcher.Plugin.BrowserTabs.dll",