From 23969bd4ca84a2b1cca0940f17b58d263fc37586 Mon Sep 17 00:00:00 2001 From: Isaac Levin Date: Thu, 23 May 2024 10:32:59 -0700 Subject: [PATCH] Update Nugets and fix Remote Hue Custom Color Bug --- src/DesktopClient/PresenceLight/PresenceLight.csproj | 2 +- src/PresenceLight.Core/PresenceLight.Core.csproj | 8 ++++---- src/PresenceLight.Razor/Components/Pages/Color.razor | 6 ++++-- src/PresenceLight.Razor/PresenceLight.Razor.csproj | 12 ++++++------ src/PresenceLight.Web/PresenceLight.Web.csproj | 8 ++++---- 5 files changed, 19 insertions(+), 17 deletions(-) diff --git a/src/DesktopClient/PresenceLight/PresenceLight.csproj b/src/DesktopClient/PresenceLight/PresenceLight.csproj index b3eaf28f..f7b9ce89 100644 --- a/src/DesktopClient/PresenceLight/PresenceLight.csproj +++ b/src/DesktopClient/PresenceLight/PresenceLight.csproj @@ -17,7 +17,7 @@ - + diff --git a/src/PresenceLight.Core/PresenceLight.Core.csproj b/src/PresenceLight.Core/PresenceLight.Core.csproj index 3f6d30a3..ef281a81 100644 --- a/src/PresenceLight.Core/PresenceLight.Core.csproj +++ b/src/PresenceLight.Core/PresenceLight.Core.csproj @@ -26,11 +26,11 @@ - - - + + + - + diff --git a/src/PresenceLight.Razor/Components/Pages/Color.razor b/src/PresenceLight.Razor/Components/Pages/Color.razor index c927c17c..610a86ea 100644 --- a/src/PresenceLight.Razor/Components/Pages/Color.razor +++ b/src/PresenceLight.Razor/Components/Pages/Color.razor @@ -44,7 +44,6 @@ if (appState.Config.LightSettings.Hue.IsEnabled) { if (Helpers.AreStringsNotEmpty(new string[] {appState.Config.LightSettings.Hue.HueApiKey, - appState.Config.LightSettings.Hue.HueIpAddress, appState.Config.LightSettings.Hue.SelectedItemId })) { if (appState.Config.LightSettings.Hue.UseRemoteApi) @@ -62,7 +61,10 @@ } else { - await _mediator.Send(new Core.HueServices.SetColorCommand() { Activity = appState.CustomColor, Availability = appState.CustomColor, LightID = appState.Config.LightSettings.Hue.SelectedItemId}); + if (!string.IsNullOrEmpty(appState.Config.LightSettings.Hue.HueIpAddress)) + { + await _mediator.Send(new Core.HueServices.SetColorCommand() { Activity = appState.CustomColor, Availability = appState.CustomColor, LightID = appState.Config.LightSettings.Hue.SelectedItemId }); + } } } } diff --git a/src/PresenceLight.Razor/PresenceLight.Razor.csproj b/src/PresenceLight.Razor/PresenceLight.Razor.csproj index 373bcb7b..38b79472 100644 --- a/src/PresenceLight.Razor/PresenceLight.Razor.csproj +++ b/src/PresenceLight.Razor/PresenceLight.Razor.csproj @@ -19,16 +19,16 @@ - - + + - - - - + + + + diff --git a/src/PresenceLight.Web/PresenceLight.Web.csproj b/src/PresenceLight.Web/PresenceLight.Web.csproj index fac7a08c..a3278645 100644 --- a/src/PresenceLight.Web/PresenceLight.Web.csproj +++ b/src/PresenceLight.Web/PresenceLight.Web.csproj @@ -23,10 +23,10 @@ - - - - + + + +