support progress bar while splash window is up

This commit is contained in:
Luke Pulverenti
2013-12-13 10:48:35 -05:00
parent 065a8ea21e
commit d00178d8f0
7 changed files with 126 additions and 72 deletions

View File

@@ -72,12 +72,14 @@ namespace MediaBrowser.ServerApplication
{
try
{
var initProgress = new Progress<double>();
if (!IsRunningAsService)
{
ShowSplashWindow();
ShowSplashWindow(initProgress);
}
await _appHost.Init();
await _appHost.Init(initProgress);
var task = _appHost.RunStartupTasks();
@@ -131,9 +133,9 @@ namespace MediaBrowser.ServerApplication
}
private SplashWindow _splashWindow;
private void ShowSplashWindow()
private void ShowSplashWindow(Progress<double> progress)
{
var win = new SplashWindow(_appHost.ApplicationVersion);
var win = new SplashWindow(_appHost.ApplicationVersion, progress);
win.Show();
_splashWindow = win;