mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-20 17:14:42 +01:00
Added initial implementation of the metadata provider network, along with the first few providers
This commit is contained in:
parent
803ce0968e
commit
d794eecec4
@@ -2,7 +2,7 @@
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:tb="http://www.hardcodet.net/taskbar"
|
||||
Title="MainWindow" Height="350" Width="525" AllowsTransparency="True" Background="Transparent" WindowStyle="None" ShowInTaskbar="False" Loaded="MainWindow_Loaded">
|
||||
Title="MainWindow" Height="350" Width="525" AllowsTransparency="True" Background="Transparent" WindowStyle="None" ShowInTaskbar="False">
|
||||
<Grid>
|
||||
<tb:TaskbarIcon Name="MbTaskbarIcon" IconSource="/Icons/Icon.ico" ToolTipText="MediaBrowser Server" Visibility="Hidden">
|
||||
|
||||
|
||||
@@ -4,6 +4,8 @@ using System.Windows;
|
||||
using MediaBrowser.Common.Logging;
|
||||
using MediaBrowser.Controller;
|
||||
using MediaBrowser.Model.Progress;
|
||||
using System.Threading.Tasks;
|
||||
using MediaBrowser.Common.UI;
|
||||
|
||||
namespace MediaBrowser.ServerApplication
|
||||
{
|
||||
@@ -18,10 +20,10 @@ namespace MediaBrowser.ServerApplication
|
||||
LoadKernel();
|
||||
}
|
||||
|
||||
private void LoadKernel()
|
||||
private async void LoadKernel()
|
||||
{
|
||||
Progress<TaskProgress> progress = new Progress<TaskProgress>();
|
||||
Common.UI.Splash splash = new Common.UI.Splash(progress);
|
||||
Splash splash = new Splash(progress);
|
||||
|
||||
splash.Show();
|
||||
|
||||
@@ -29,11 +31,14 @@ namespace MediaBrowser.ServerApplication
|
||||
{
|
||||
DateTime now = DateTime.Now;
|
||||
|
||||
new Kernel().Init(progress);
|
||||
await new Kernel().Init(progress);
|
||||
|
||||
double seconds = (DateTime.Now - now).TotalSeconds;
|
||||
|
||||
Logger.LogInfo("Kernel.Init completed in {0} seconds.", seconds);
|
||||
|
||||
// Don't show the system tray icon until the kernel finishes.
|
||||
this.MbTaskbarIcon.Visibility = System.Windows.Visibility.Visible;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
@@ -46,16 +51,6 @@ namespace MediaBrowser.ServerApplication
|
||||
}
|
||||
}
|
||||
|
||||
#region Main Window Events
|
||||
|
||||
private void MainWindow_Loaded(object sender, RoutedEventArgs e)
|
||||
{
|
||||
// Don't show the system tray icon until the app has loaded.
|
||||
this.MbTaskbarIcon.Visibility = System.Windows.Visibility.Visible;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Context Menu events
|
||||
|
||||
private void cmOpenDashboard_click(object sender, RoutedEventArgs e)
|
||||
|
||||
Reference in New Issue
Block a user