mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-07 08:18:54 +01:00
Some minor code cleanups
This commit is contained in:
parent
016590529f
commit
670a53258e
@@ -19,7 +19,7 @@ namespace MediaBrowser.Common.UI
|
||||
protected override void OnStartup(StartupEventArgs e)
|
||||
{
|
||||
// Without this the app will shutdown after the splash screen closes
|
||||
this.ShutdownMode = ShutdownMode.OnExplicitShutdown;
|
||||
ShutdownMode = ShutdownMode.OnExplicitShutdown;
|
||||
|
||||
LoadKernel();
|
||||
}
|
||||
@@ -42,7 +42,7 @@ namespace MediaBrowser.Common.UI
|
||||
Logger.LogInfo("Kernel.Init completed in {0} seconds.", (DateTime.UtcNow - now).TotalSeconds);
|
||||
splash.Close();
|
||||
|
||||
this.ShutdownMode = System.Windows.ShutdownMode.OnLastWindowClose;
|
||||
ShutdownMode = System.Windows.ShutdownMode.OnLastWindowClose;
|
||||
InstantiateMainWindow().ShowDialog();
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
||||
@@ -13,18 +13,17 @@ namespace Microsoft.Shell
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.IO;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Runtime.Remoting;
|
||||
using System.Runtime.Remoting.Channels;
|
||||
using System.Runtime.Remoting.Channels.Ipc;
|
||||
using System.Runtime.Serialization.Formatters;
|
||||
using System.Security;
|
||||
using System.Threading;
|
||||
using System.Windows;
|
||||
using System.Windows.Threading;
|
||||
using System.Xml.Serialization;
|
||||
using System.Security;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.ComponentModel;
|
||||
|
||||
internal enum WM
|
||||
{
|
||||
@@ -184,7 +183,7 @@ namespace Microsoft.Shell
|
||||
finally
|
||||
{
|
||||
|
||||
IntPtr p = _LocalFree(argv);
|
||||
_LocalFree(argv);
|
||||
// Otherwise LocalFree failed.
|
||||
// Assert.AreEqual(IntPtr.Zero, p);
|
||||
}
|
||||
|
||||
@@ -27,8 +27,8 @@ namespace MediaBrowser.Common.UI
|
||||
Logger.LogInfo(e.Description);
|
||||
}
|
||||
|
||||
this.lblProgress.Content = e.Description;
|
||||
this.pbProgress.Value = (double)e.PercentComplete;
|
||||
lblProgress.Content = e.Description;
|
||||
pbProgress.Value = (double)e.PercentComplete;
|
||||
}
|
||||
|
||||
private void Splash_Loaded(object sender, RoutedEventArgs e)
|
||||
|
||||
Reference in New Issue
Block a user