mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Don't load bookmark files if plugin disabled
This commit is contained in:
parent
d0289b49b6
commit
cbf73fcc0f
1 changed files with 7 additions and 0 deletions
|
|
@ -29,6 +29,13 @@ namespace Flow.Launcher.Plugin.BrowserBookmark
|
|||
|
||||
_settings = context.API.LoadSettingJsonStorage<Settings>();
|
||||
|
||||
if (context.CurrentPluginMetadata.Disabled)
|
||||
{
|
||||
// Don't load and monitor files if disabled
|
||||
// Note: It doesn't start loading or monitoring if enabled later
|
||||
return;
|
||||
}
|
||||
|
||||
cachedBookmarks = BookmarkLoader.LoadAllBookmarks(_settings);
|
||||
|
||||
_ = MonitorRefreshQueue();
|
||||
|
|
|
|||
Loading…
Reference in a new issue