Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
harrynull committed Jul 16, 2020
1 parent 916b41e commit cc46053
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Dictionary.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ bool CopyIfNeeded(ActionContext e)
}
return true;
}
bool readWordIfNeeded(ActionContext e)
bool ReadWordIfNeeded(ActionContext e)
{
if (!e.SpecialKeyState.CtrlPressed) return false;
if (synth == null)
Expand All @@ -85,16 +85,16 @@ bool readWordIfNeeded(ActionContext e)
ActionFunc = e =>
{
if (CopyIfNeeded(e)) return true;
if (readWordIfNeeded(e)) return false;
if (ReadWordIfNeeded(e)) return false;
context.API.ChangeQuery(ActionWord + " " + (word ?? QueryWord) + extraAction);
return false;
};
}
else
{
ActionFunc = e => {
CopyIfNeeded(e);
if(readWordIfNeeded(e)) return false;
if(CopyIfNeeded(e)) return true;
if(ReadWordIfNeeded(e)) return false;
if(settings.WordWebsite!="") System.Diagnostics.Process.Start(string.Format(settings.WordWebsite, getWord()));
return true;
};
Expand Down

0 comments on commit cc46053

Please sign in to comment.