mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Validate the cache directory before loading all bookmarks
This commit is contained in:
parent
165e498a94
commit
4931a1436a
1 changed files with 3 additions and 2 deletions
|
|
@ -37,8 +37,6 @@ public class Main : ISettingProvider, IPlugin, IReloadable, IPluginI18n, IContex
|
|||
context.CurrentPluginMetadata.PluginCacheDirectoryPath,
|
||||
"FaviconCache");
|
||||
|
||||
FilesFolders.ValidateDirectory(_faviconCacheDir);
|
||||
|
||||
LoadBookmarksIfEnabled();
|
||||
}
|
||||
|
||||
|
|
@ -50,6 +48,9 @@ public class Main : ISettingProvider, IPlugin, IReloadable, IPluginI18n, IContex
|
|||
return;
|
||||
}
|
||||
|
||||
// Validate the cache directory before loading all bookmarks because Flow needs this directory to storage favicons
|
||||
FilesFolders.ValidateDirectory(_faviconCacheDir);
|
||||
|
||||
_cachedBookmarks = BookmarkLoader.LoadAllBookmarks(_settings);
|
||||
_ = MonitorRefreshQueueAsync();
|
||||
_initialized = true;
|
||||
|
|
|
|||
Loading…
Reference in a new issue