From 4f3523342b36ecadcce9060c0966f7ae78387bf3 Mon Sep 17 00:00:00 2001 From: Erin Date: Mon, 5 Feb 2024 10:20:32 -0600 Subject: [PATCH] Revert Wifi/Ethernet toggle if selection is "No" to are you sure question --- src/Create3Widget.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Create3Widget.cpp b/src/Create3Widget.cpp index 8a1daae2..8b46a770 100644 --- a/src/Create3Widget.cpp +++ b/src/Create3Widget.cpp @@ -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())); @@ -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); @@ -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);