mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Fix SearchSource editing when action keyword is not changed (#856)
* Fixed SearchSource edit * Remove temp var
This commit is contained in:
parent
3b53527e9e
commit
59fbb2acb1
1 changed files with 3 additions and 4 deletions
|
|
@ -96,11 +96,10 @@ namespace Wox.Plugin.WebSearch
|
||||||
|
|
||||||
private void EditSearchSource()
|
private void EditSearchSource()
|
||||||
{
|
{
|
||||||
var keyword = _searchSource.ActionKeyword;
|
var newKeyword = _searchSource.ActionKeyword;
|
||||||
if (!PluginManager.ActionKeywordRegistered(keyword))
|
var oldKeyword = _oldSearchSource.ActionKeyword;
|
||||||
|
if (!PluginManager.ActionKeywordRegistered(newKeyword) || oldKeyword == newKeyword)
|
||||||
{
|
{
|
||||||
var newKeyword = keyword;
|
|
||||||
var oldKeyword = _oldSearchSource.ActionKeyword;
|
|
||||||
var id = _context.CurrentPluginMetadata.ID;
|
var id = _context.CurrentPluginMetadata.ID;
|
||||||
PluginManager.ReplaceActionKeyword(id, oldKeyword, newKeyword);
|
PluginManager.ReplaceActionKeyword(id, oldKeyword, newKeyword);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue