From 564100c25baa0f7b46d72a102179245a6ecefda1 Mon Sep 17 00:00:00 2001 From: Ben Kuper Date: Mon, 16 Oct 2023 17:32:40 +0200 Subject: [PATCH] no connect on empty remoteHost --- Source/Prop/props/bento/BentoComponentContainer.cpp | 2 +- Source/Prop/props/bento/BentoProp.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Prop/props/bento/BentoComponentContainer.cpp b/Source/Prop/props/bento/BentoComponentContainer.cpp index 673e458f..a722714c 100644 --- a/Source/Prop/props/bento/BentoComponentContainer.cpp +++ b/Source/Prop/props/bento/BentoComponentContainer.cpp @@ -159,7 +159,7 @@ void BentoComponentContainer::run() void BentoComponentContainer::requestHostInfo() { - if (prop->remoteHost == nullptr) return + if (prop->remoteHost == nullptr || prop->remoteHost->stringValue().isEmpty()) return prop->isConnected->setValue(false); diff --git a/Source/Prop/props/bento/BentoProp.cpp b/Source/Prop/props/bento/BentoProp.cpp index 8bcc0e13..85e5c151 100644 --- a/Source/Prop/props/bento/BentoProp.cpp +++ b/Source/Prop/props/bento/BentoProp.cpp @@ -21,7 +21,7 @@ BentoProp::BentoProp(var params) : useAlphaInPlaybackData = true; invertLedsInUI = true; - remoteHost = connectionCC.addStringParameter("Network IP", "IP of the prop on the network", "192.168.0.100"); + remoteHost = connectionCC.addStringParameter("Network IP", "IP of the prop on the network", ""); resolution->setDefaultValue(32); brightness = generalCC.addFloatParameter("Brightness", "Brightness of the prop", 1, 0, 1);