Add PushResults for push results before Query results return

This commit is contained in:
Yeechan Lu
2014-03-27 14:50:42 +08:00
parent 9bc4b74888
commit ac81d38acc
6 changed files with 33 additions and 19 deletions

View File

@@ -40,7 +40,7 @@ namespace Wox.PluginLoader
if (pluginPair != null)
{
PluginMetadata metadata = pluginPair.Metadata;
forker.Fork(() => plugin1.Init(new PluginInitContext()
pluginPair.InitContext = new PluginInitContext()
{
Plugins = plugins,
CurrentPluginMetadata = metadata,
@@ -60,7 +60,8 @@ namespace Wox.PluginLoader
StartLoadingBar = () => App.Window.Dispatcher.Invoke(new Action(() => App.Window.StartLoadingBar())),
StopLoadingBar = () => App.Window.Dispatcher.Invoke(new Action(() => App.Window.StopLoadingBar())),
ShellRun = (cmd) => (bool) App.Window.Dispatcher.Invoke(new Func<bool>(() => App.Window.ShellRun(cmd))),
}));
};
forker.Fork(() => plugin1.Init(pluginPair.InitContext));
}
}