Use ShellRun to provide unified experience

This commit is contained in:
Yeechan Lu
2014-03-21 03:53:18 +08:00
parent 25cedff47a
commit 5c6b741dc4
10 changed files with 33 additions and 52 deletions

View File

@@ -51,6 +51,7 @@ 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))),
}));
}
}