aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.ServerApplication/App.xaml.cs
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.ServerApplication/App.xaml.cs')
-rw-r--r--MediaBrowser.ServerApplication/App.xaml.cs13
1 files changed, 8 insertions, 5 deletions
diff --git a/MediaBrowser.ServerApplication/App.xaml.cs b/MediaBrowser.ServerApplication/App.xaml.cs
index 9b978ca2d..839841620 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();
@@ -114,7 +116,8 @@ namespace MediaBrowser.ServerApplication
var win = new MainWindow(host.LogManager, host,
host.ServerConfigurationManager, host.UserManager,
host.LibraryManager, host.JsonSerializer,
- host.DisplayPreferencesRepository);
+ host.DisplayPreferencesRepository,
+ host.ItemRepository);
win.Show();
@@ -131,9 +134,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;