From 0b673672aff9fc8128182cf53007de89fb96e136 Mon Sep 17 00:00:00 2001 From: Erin Date: Thu, 7 Mar 2024 14:33:09 -0600 Subject: [PATCH] Locked down Create 3 Connect, Sensors, Examples, and toggle if there isn't an IP showing --- src/Create3Widget.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/Create3Widget.cpp b/src/Create3Widget.cpp index 8b46a770..8ed61b29 100644 --- a/src/Create3Widget.cpp +++ b/src/Create3Widget.cpp @@ -68,6 +68,20 @@ Create3Widget::Create3Widget(Device *device, QWidget *parent) } connect(ui->toggleSwitch, SIGNAL(stateChanged(int)), this, SLOT(toggleChanged())); + + if(ui->create3IP->text() == ""){ + ui->CreateConnectButton->setEnabled(false); + ui->Create3SensorListButton->setEnabled(false); + ui->Create3ExampleProgramButton->setEnabled(false); + ui->toggleSwitch->setEnabled(false); + } + else{ + ui->CreateConnectButton->setEnabled(true); + ui->Create3SensorListButton->setEnabled(true); + ui->Create3ExampleProgramButton->setEnabled(true); + ui->toggleSwitch->setEnabled(true); + + } } Create3Widget::~Create3Widget()