Skip to content

Commit 414684c

Browse files
committed
Replace action keyword function with api
1 parent cab3eb7 commit 414684c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Plugins/Flow.Launcher.Plugin.WebSearch/SearchSourceSetting.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ private void AddSearchSource()
8383
if (!_context.API.ActionKeywordAssigned(keyword))
8484
{
8585
var id = _context.CurrentPluginMetadata.ID;
86-
PluginManager.AddActionKeyword(id, keyword);
86+
_context.API.AddActionKeyword(id, keyword);
8787

8888
_searchSources.Add(_searchSource);
8989

Plugins/Flow.Launcher.Plugin.WebSearch/SettingsControl.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ private void OnDeleteSearchSearchClick(object sender, RoutedEventArgs e)
4040
if (result == MessageBoxResult.Yes)
4141
{
4242
var id = _context.CurrentPluginMetadata.ID;
43-
PluginManager.RemoveActionKeyword(id, selected.ActionKeyword);
43+
_context.API.RemoveActionKeyword(id, selected.ActionKeyword);
4444
_settings.SearchSources.Remove(selected);
4545
}
4646
}

0 commit comments

Comments
 (0)