diff --git a/Kyoo.Authentication/Extensions.cs b/Kyoo.Authentication/Extensions.cs index 9b7f3bcd..870cb6ab 100644 --- a/Kyoo.Authentication/Extensions.cs +++ b/Kyoo.Authentication/Extensions.cs @@ -28,7 +28,7 @@ namespace Kyoo.Authentication } /// - /// Convert a user to an . + /// Convert a user to an IdentityServerUser. /// /// The user to convert. /// The corresponding identity server user. diff --git a/Kyoo.Host.WindowsTrait/Kyoo.Host.WindowsTrait.csproj b/Kyoo.Host.WindowsTrait/Kyoo.Host.WindowsTrait.csproj index dffd572f..a1b456db 100644 --- a/Kyoo.Host.WindowsTrait/Kyoo.Host.WindowsTrait.csproj +++ b/Kyoo.Host.WindowsTrait/Kyoo.Host.WindowsTrait.csproj @@ -1,12 +1,43 @@ - + - {98851001-40DD-46A6-94B3-2F8D90722076} + true - - + - - + + WinExe + net5.0-windows + true + Kyoo.WindowsHost + + + + + + + + PreserveNewest + + + + + net5.0 + NU1503 + + + + + + + + + + + + + + + diff --git a/Kyoo.Host.WindowsTrait/Kyoo.Host.WindowsTrait.linux.target b/Kyoo.Host.WindowsTrait/Kyoo.Host.WindowsTrait.linux.target deleted file mode 100644 index 99c68350..00000000 --- a/Kyoo.Host.WindowsTrait/Kyoo.Host.WindowsTrait.linux.target +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - net5.0 - NU1503 - - - - - - - - - - - - - - - - - - diff --git a/Kyoo.Host.WindowsTrait/Kyoo.Host.WindowsTrait.target b/Kyoo.Host.WindowsTrait/Kyoo.Host.WindowsTrait.target deleted file mode 100644 index 1989bbdb..00000000 --- a/Kyoo.Host.WindowsTrait/Kyoo.Host.WindowsTrait.target +++ /dev/null @@ -1,24 +0,0 @@ - - - - - WinExe - net5.0-windows - true - Kyoo.WindowsHost - - - - - - - - - - - PreserveNewest - - - diff --git a/Kyoo.Host.WindowsTrait/SystemTrait.cs b/Kyoo.Host.WindowsTrait/SystemTrait.cs index bf0ea282..d46a132a 100644 --- a/Kyoo.Host.WindowsTrait/SystemTrait.cs +++ b/Kyoo.Host.WindowsTrait/SystemTrait.cs @@ -25,13 +25,12 @@ namespace Kyoo.Host.WindowsTrait /// The options containing the . /// private readonly IOptions _options; - + /// /// The thread where the trait is running. /// private Thread _thread; - - + /// /// Create a new . /// @@ -42,7 +41,7 @@ namespace Kyoo.Host.WindowsTrait _application = application; _options = options; } - + /// public void Start() { @@ -73,12 +72,12 @@ namespace Kyoo.Host.WindowsTrait private readonly IApplication _application; /// - /// The options containing the . - /// + /// The options containing the . + /// private readonly IOptions _options; - + /// - /// The Icon that is displayed in the window's bar. + /// The Icon that is displayed in the window's bar. /// private readonly NotifyIcon _icon; @@ -95,10 +94,12 @@ namespace Kyoo.Host.WindowsTrait AppDomain.CurrentDomain.ProcessExit += (_, _) => Dispose(); System.Windows.Forms.Application.ApplicationExit += (_, _) => Dispose(); - _icon = new NotifyIcon(); - _icon.Text = "Kyoo"; - _icon.Icon = new Icon(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "kyoo.ico")); - _icon.Visible = true; + _icon = new NotifyIcon + { + Text = "Kyoo", + Icon = new Icon(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "kyoo.ico")), + Visible = true + }; _icon.MouseClick += (_, e) => { if (e.Button != MouseButtons.Left) @@ -160,4 +161,4 @@ namespace Kyoo.Host.WindowsTrait } } } -} \ No newline at end of file +}