Skip to content

Commit

Permalink
no connect on empty remoteHost
Browse files Browse the repository at this point in the history
  • Loading branch information
benkuper committed Oct 16, 2023
1 parent b22159f commit 564100c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Source/Prop/props/bento/BentoComponentContainer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion Source/Prop/props/bento/BentoProp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 564100c

Please sign in to comment.