File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed
Plugins/Flow.Launcher.Plugin.BrowserBookmark Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -33,29 +33,26 @@ public void Init(PluginInitContext context)
33
33
_settings = context . API . LoadSettingJsonStorage < Settings > ( ) ;
34
34
35
35
LoadBookmarksIfEnabled ( ) ;
36
-
37
- initialized = true ;
38
36
}
39
37
40
38
private static void LoadBookmarksIfEnabled ( )
41
39
{
42
40
if ( context . CurrentPluginMetadata . Disabled )
43
41
{
44
42
// Don't load or monitor files if disabled
45
- // Note: It doesn't start loading or monitoring if enabled later, you need to manually reload data
46
43
return ;
47
44
}
48
45
49
46
cachedBookmarks = BookmarkLoader . LoadAllBookmarks ( _settings ) ;
50
47
_ = MonitorRefreshQueueAsync ( ) ;
48
+ initialized = true ;
51
49
}
52
50
53
51
public List < Result > Query ( Query query )
54
52
{
55
53
if ( ! initialized )
56
54
{
57
55
LoadBookmarksIfEnabled ( ) ;
58
- initialized = true ;
59
56
}
60
57
61
58
string param = query . Search . TrimStart ( ) ;
@@ -140,10 +137,6 @@ internal static void RegisterBookmarkFile(string path)
140
137
{
141
138
return ;
142
139
}
143
- if ( context . CurrentPluginMetadata . Disabled )
144
- {
145
- return ;
146
- }
147
140
if ( Watchers . Any ( x => x . Path . Equals ( directory , StringComparison . OrdinalIgnoreCase ) ) )
148
141
{
149
142
return ;
You can’t perform that action at this time.
0 commit comments