mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-08 07:12:56 +01:00
support progress bar while splash window is up
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user