Skip to content

Commit 10c9549

Browse files
committed
Start initialization when bookmarks are not initialized
1 parent e59902c commit 10c9549

File tree

1 file changed

+3
-10
lines changed
  • Plugins/Flow.Launcher.Plugin.BrowserBookmark

1 file changed

+3
-10
lines changed

Plugins/Flow.Launcher.Plugin.BrowserBookmark/Main.cs

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -88,16 +88,9 @@ public async Task<List<Result>> QueryAsync(Query query, CancellationToken token)
8888
{
8989
if (!_isInitialized)
9090
{
91-
// If the list is not initialized, we need to wait for the list to be refreshed before querying
92-
await _initializationSemaphore.WaitAsync(token);
93-
try
94-
{
95-
return QueryResults(query);
96-
}
97-
finally
98-
{
99-
_initializationSemaphore.Release();
100-
}
91+
// If the list is not initialized, we need to wait for the list to be initialized before querying
92+
await LoadBookmarksInBackgroundAsync();
93+
return QueryResults(query);
10194
}
10295
else
10396
{

0 commit comments

Comments
 (0)