Skip to content

Commit cbf73fc

Browse files
Don't load bookmark files if plugin disabled
1 parent d0289b4 commit cbf73fc

File tree

1 file changed

+7
-0
lines changed
  • Plugins/Flow.Launcher.Plugin.BrowserBookmark

1 file changed

+7
-0
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,13 @@ public void Init(PluginInitContext context)
2929

3030
_settings = context.API.LoadSettingJsonStorage<Settings>();
3131

32+
if (context.CurrentPluginMetadata.Disabled)
33+
{
34+
// Don't load and monitor files if disabled
35+
// Note: It doesn't start loading or monitoring if enabled later
36+
return;
37+
}
38+
3239
cachedBookmarks = BookmarkLoader.LoadAllBookmarks(_settings);
3340

3441
_ = MonitorRefreshQueue();

0 commit comments

Comments
 (0)