Skip to content

Commit 292012b

Browse files
committed
firefox polling hours
1 parent 4a6341e commit 292012b

File tree

1 file changed

+2
-1
lines changed
  • Plugins/Flow.Launcher.Plugin.BrowserBookmarks

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ public class Main : ISettingProvider, IPlugin, IAsyncReloadable, IPluginI18n, IC
2828
private List<Bookmark> _bookmarks = new();
2929
private readonly CancellationTokenSource _cancellationTokenSource = new();
3030
private PeriodicTimer? _firefoxBookmarkTimer;
31+
private static readonly TimeSpan FirefoxPollingInterval = TimeSpan.FromHours(3);
3132

3233
public void Init(PluginInitContext context)
3334
{
@@ -146,7 +147,7 @@ private void StartFirefoxBookmarkTimer()
146147
if (!_settings.LoadFirefoxBookmark && !_settings.CustomBrowsers.Any(x => x.BrowserType == BrowserType.Firefox))
147148
return;
148149

149-
_firefoxBookmarkTimer = new PeriodicTimer(TimeSpan.FromHours(3));
150+
_firefoxBookmarkTimer = new PeriodicTimer(FirefoxPollingInterval);
150151

151152
_ = Task.Run(async () =>
152153
{

0 commit comments

Comments
 (0)