diff --git a/MediaBrowser.ServerApplication/ApplicationHost.cs b/MediaBrowser.ServerApplication/ApplicationHost.cs index 11a262ef8..5d630180b 100644 --- a/MediaBrowser.ServerApplication/ApplicationHost.cs +++ b/MediaBrowser.ServerApplication/ApplicationHost.cs @@ -42,6 +42,7 @@ using MediaBrowser.Server.Implementations.Udp; using MediaBrowser.Server.Implementations.Updates; using MediaBrowser.Server.Implementations.WebSocket; using MediaBrowser.ServerApplication.Implementations; +using MediaBrowser.ServerApplication.Splash; using MediaBrowser.WebDashboard.Api; using System; using System.Collections.Generic; @@ -169,6 +170,21 @@ namespace MediaBrowser.ServerApplication private Task _httpServerCreationTask; + /// + /// Inits this instance. + /// + /// Task. + public override async Task Init() + { + var win = new SplashWindow(); + + win.Show(); + + await base.Init(); + + win.Hide(); + } + /// /// Runs the startup tasks. /// diff --git a/MediaBrowser.ServerApplication/MediaBrowser.ServerApplication.csproj b/MediaBrowser.ServerApplication/MediaBrowser.ServerApplication.csproj index cee13f574..f3da684eb 100644 --- a/MediaBrowser.ServerApplication/MediaBrowser.ServerApplication.csproj +++ b/MediaBrowser.ServerApplication/MediaBrowser.ServerApplication.csproj @@ -186,6 +186,9 @@ + + SplashWindow.xaml + MSBuild:Compile Designer @@ -229,6 +232,10 @@ MainWindow.xaml Code + + Designer + MSBuild:Compile + diff --git a/MediaBrowser.ServerApplication/Splash/SplashWindow.xaml b/MediaBrowser.ServerApplication/Splash/SplashWindow.xaml new file mode 100644 index 000000000..a9463ebb4 --- /dev/null +++ b/MediaBrowser.ServerApplication/Splash/SplashWindow.xaml @@ -0,0 +1,8 @@ + + + Loading + + diff --git a/MediaBrowser.ServerApplication/Splash/SplashWindow.xaml.cs b/MediaBrowser.ServerApplication/Splash/SplashWindow.xaml.cs new file mode 100644 index 000000000..3f471612f --- /dev/null +++ b/MediaBrowser.ServerApplication/Splash/SplashWindow.xaml.cs @@ -0,0 +1,27 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows; +using System.Windows.Controls; +using System.Windows.Data; +using System.Windows.Documents; +using System.Windows.Input; +using System.Windows.Media; +using System.Windows.Media.Imaging; +using System.Windows.Shapes; + +namespace MediaBrowser.ServerApplication.Splash +{ + /// + /// Interaction logic for SplashWindow.xaml + /// + public partial class SplashWindow : Window + { + public SplashWindow() + { + InitializeComponent(); + } + } +} diff --git a/MediaBrowser.sln b/MediaBrowser.sln index f9f5e9436..eb3251f74 100644 --- a/MediaBrowser.sln +++ b/MediaBrowser.sln @@ -173,4 +173,7 @@ Global GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection + GlobalSection(Performance) = preSolution + HasPerformanceSessions = true + EndGlobalSection EndGlobal