Skip to content

Commit

Permalink
Locked down Create 3 Connect, Sensors, Examples, and toggle if there …
Browse files Browse the repository at this point in the history
…isn't an IP showing
  • Loading branch information
erinharrington-12 committed Mar 7, 2024
1 parent 4f35233 commit 0b67367
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/Create3Widget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 0b67367

Please sign in to comment.