diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-12-13 10:48:35 -0500 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-12-13 10:48:35 -0500 |
| commit | d00178d8f0002638d47174c0bd73ebcf1ac5f6fd (patch) | |
| tree | 43c0cf805efb5524cc7faa9f795a9edd52768014 /MediaBrowser.ServerApplication/App.xaml.cs | |
| parent | 065a8ea21e956e148cb1637c669895bbb1b1af5b (diff) | |
support progress bar while splash window is up
Diffstat (limited to 'MediaBrowser.ServerApplication/App.xaml.cs')
| -rw-r--r-- | MediaBrowser.ServerApplication/App.xaml.cs | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/MediaBrowser.ServerApplication/App.xaml.cs b/MediaBrowser.ServerApplication/App.xaml.cs index 9b978ca2d..50bf02deb 100644 --- a/MediaBrowser.ServerApplication/App.xaml.cs +++ b/MediaBrowser.ServerApplication/App.xaml.cs @@ -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; |
