Skip to content

Commit 4931a14

Browse files
committed
Validate the cache directory before loading all bookmarks
1 parent 165e498 commit 4931a14

File tree

1 file changed

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

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@ public void Init(PluginInitContext context)
3737
context.CurrentPluginMetadata.PluginCacheDirectoryPath,
3838
"FaviconCache");
3939

40-
FilesFolders.ValidateDirectory(_faviconCacheDir);
41-
4240
LoadBookmarksIfEnabled();
4341
}
4442

@@ -50,6 +48,9 @@ private static void LoadBookmarksIfEnabled()
5048
return;
5149
}
5250

51+
// Validate the cache directory before loading all bookmarks because Flow needs this directory to storage favicons
52+
FilesFolders.ValidateDirectory(_faviconCacheDir);
53+
5354
_cachedBookmarks = BookmarkLoader.LoadAllBookmarks(_settings);
5455
_ = MonitorRefreshQueueAsync();
5556
_initialized = true;

0 commit comments

Comments
 (0)