Skip to content

Commit

Permalink
Merge pull request #142 from kipr/create3LockDown
Browse files Browse the repository at this point in the history
Create 3 Widget Lock Down Buttons
  • Loading branch information
tcorbly authored Jun 11, 2024
2 parents 4f35233 + 0b67367 commit 81d472a
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 81d472a

Please sign in to comment.