Fix mouse click issues and add a new hotmovie plugin.

This commit is contained in:
qianlifeng
2014-03-05 22:32:21 +08:00
parent 62475f9bcf
commit b38fa395ce
12 changed files with 222 additions and 7 deletions

View File

@@ -47,6 +47,7 @@ namespace Wox
InitializeComponent();
progressBar.ToolTip = toolTip;
InitialTray();
resultCtrl.OnMouseClickItem += AcceptSelect;
ThreadPool.SetMaxThreads(30, 10);
InitProgressbarAnimation();
@@ -60,8 +61,6 @@ namespace Wox
}
}
public void SetHotkey(string hotkeyStr, EventHandler<HotkeyEventArgs> action)
{
var hotkey = new HotkeyModel(hotkeyStr);
@@ -285,15 +284,14 @@ namespace Wox
break;
case Key.Enter:
AcceptSelect();
AcceptSelect(resultCtrl.AcceptSelect());
e.Handled = true;
break;
}
}
private void AcceptSelect()
private void AcceptSelect(Result result)
{
Result result = resultCtrl.AcceptSelect();
if (result != null)
{
if (result.Action != null)