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 @@ - - - - + + + +