small tweaks

This commit is contained in:
Andrzej Martyna 2025-12-30 09:11:56 +01:00
parent a472725209
commit 36b7799f2e
2 changed files with 5 additions and 1 deletions

View file

@ -6,6 +6,10 @@ using System.Windows.Automation;
using Flow.Launcher.Plugin.BrowserBookmark.Tabs;
using static Flow.Launcher.Plugin.BrowserBookmark.Main;
/// <summary>
/// TabsFocusEventDispatcher handles TabsTracker.OnFocusChanged events in a separate thread.
/// This is to avoid sleeping in Automation.AddAutomationFocusChangedEventHandler.
/// </summary>
internal sealed class TabsFocusEventDispatcher : IDisposable
{
private static readonly string ClassName = nameof(TabsFocusEventDispatcher);

View file

@ -18,7 +18,7 @@ namespace Flow.Launcher.Plugin.BrowserBookmark.Tabs;
internal class TabsWalker
{
private static readonly string ClassName = nameof(TabsWalker);
private readonly TimeSpan _tabRetryTimeout = TimeSpan.FromSeconds(4);
private readonly TimeSpan _tabRetryTimeout = TimeSpan.FromSeconds(5);
private readonly TimeSpan _tabRetryInterval = TimeSpan.FromMilliseconds(250);
private readonly TabsCache _cache = new();