Skip to content

Commit

Permalink
Removing redundant toggle UI change
Browse files Browse the repository at this point in the history
  • Loading branch information
erinharrington-12 committed Jan 25, 2024
1 parent 058bb7b commit 1695790
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Create3Widget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ void Create3Widget::toggleChanged()
}
else
{
ui->toggleSwitch->setChecked(true);
QProcess process;
process.startDetached("/bin/sh", QStringList() << "/home/kipr/wombat-os/configFiles/create3_interface_swap.sh"
<< "eth");
Expand All @@ -110,14 +109,13 @@ void Create3Widget::toggleChanged()
else if (ipOutput == "192.168.186.3")
{
if (QMessageBox::question(this, "Change Interface?",
QString("You are about to change your Create 3 connection from Ethernet to Wifi. \n The Wombat will reboot once you make this change. \nDo you want to continue? \n (Be sure to change the Fast DDS discovery server IP address to 192.168.186.3)"),
QString("You are about to change your Create 3 connection from Ethernet to Wifi. \n The Wombat will reboot once you make this change. \nDo you want to continue? \n (Be sure to change the Fast DDS discovery server IP address to 192.168.125.1)"),
QMessageBox::Yes | QMessageBox::No) != QMessageBox::Yes)
{
return;
}
else
{
ui->toggleSwitch->setChecked(false);
QProcess process;
process.startDetached("/bin/sh", QStringList() << "/home/kipr/wombat-os/configFiles/create3_interface_swap.sh"
<< "wifi");
Expand Down

0 comments on commit 1695790

Please sign in to comment.