Skip to content

Commit

Permalink
Revert Wifi/Ethernet toggle if selection is "No" to are you sure ques…
Browse files Browse the repository at this point in the history
…tion
  • Loading branch information
erinharrington-12 committed Feb 5, 2024
1 parent b73663f commit 4f35233
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Create3Widget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@ Create3Widget::Create3Widget(Device *device, QWidget *parent)

if (ipOutput == "192.168.125.1")
{
ui->toggleSwitch->setChecked(false);
ui->toggleSwitch->setChecked(false); //Wifi toggle side
}
else if (ipOutput == "192.168.186.3")
{
ui->toggleSwitch->setChecked(true);
ui->toggleSwitch->setChecked(true); //Ethernet toggle side
}

connect(ui->toggleSwitch, SIGNAL(stateChanged(int)), this, SLOT(toggleChanged()));
Expand Down Expand Up @@ -105,6 +105,7 @@ void Create3Widget::toggleChanged()
{

StandardWidget::enableMenuBar();
ui->toggleSwitch->setChecked(false); //Wifi toggle side
ui->CreateConnectButton->setEnabled(true);
ui->toggleSwitch->setEnabled(true);
ui->Create3SensorListButton->setEnabled(true);
Expand All @@ -126,6 +127,7 @@ void Create3Widget::toggleChanged()
{

StandardWidget::enableMenuBar();
ui->toggleSwitch->setChecked(true); //Ethernet toggle side
ui->CreateConnectButton->setEnabled(true);
ui->toggleSwitch->setEnabled(true);
ui->Create3SensorListButton->setEnabled(true);
Expand Down

0 comments on commit 4f35233

Please sign in to comment.