Update hfop_settings.cc
This commit is contained in:
parent
8c28a51fd4
commit
1713c288ac
|
@ -44,7 +44,7 @@ FrogPilotHFOPPanel::FrogPilotHFOPPanel(FrogPilotSettingsWindow *parent) : FrogPi
|
|||
if (param == "Fuelprice") {
|
||||
FrogPilotParamManageControl *FuelpriceToggle = new FrogPilotParamManageControl(param, title, desc, icon, this);
|
||||
QObject::connect(FuelpriceToggle, &FrogPilotParamManageControl::manageButtonClicked, this, [this]() {
|
||||
showToggles();
|
||||
openParentToggle();
|
||||
for (auto &[key, toggle] : toggles) {
|
||||
toggle->setVisible(FuelpriceKeys.find(key.c_str()) != FuelpriceKeys.end());
|
||||
}
|
||||
|
@ -57,7 +57,7 @@ FrogPilotHFOPPanel::FrogPilotHFOPPanel(FrogPilotSettingsWindow *parent) : FrogPi
|
|||
} else if (param == "VagSpeed") {
|
||||
FrogPilotParamManageControl *VagSpeedToggle = new FrogPilotParamManageControl(param, title, desc, icon, this);
|
||||
QObject::connect(VagSpeedToggle, &FrogPilotParamManageControl::manageButtonClicked, this, [this]() {
|
||||
showToggles();
|
||||
openParentToggle();
|
||||
for (auto &[key, toggle] : toggles) {
|
||||
toggle->setVisible(VagSpeedKeys.find(key.c_str()) != VagSpeedKeys.end());
|
||||
}
|
||||
|
@ -69,7 +69,7 @@ FrogPilotHFOPPanel::FrogPilotHFOPPanel(FrogPilotSettingsWindow *parent) : FrogPi
|
|||
} else if (param == "AutoACC") {
|
||||
FrogPilotParamManageControl *AutoACCToggle = new FrogPilotParamManageControl(param, title, desc, icon, this);
|
||||
QObject::connect(AutoACCToggle, &FrogPilotParamManageControl::manageButtonClicked, this, [this]() {
|
||||
showToggles();
|
||||
openParentToggle();
|
||||
for (auto &[key, toggle] : toggles) {
|
||||
toggle->setVisible(AutoACCKeys.find(key.c_str()) != AutoACCKeys.end());
|
||||
}
|
||||
|
@ -85,7 +85,7 @@ FrogPilotHFOPPanel::FrogPilotHFOPPanel(FrogPilotSettingsWindow *parent) : FrogPi
|
|||
} else if (param == "Roadtype") {
|
||||
FrogPilotParamManageControl *RoadToggle = new FrogPilotParamManageControl(param, title, desc, icon, this);
|
||||
QObject::connect(RoadToggle, &FrogPilotParamManageControl::manageButtonClicked, this, [this]() {
|
||||
showToggles();
|
||||
openParentToggle();
|
||||
for (auto &[key, toggle] : toggles) {
|
||||
toggle->setVisible(RoadKeys.find(key.c_str()) != RoadKeys.end());
|
||||
}
|
||||
|
@ -99,7 +99,7 @@ FrogPilotHFOPPanel::FrogPilotHFOPPanel(FrogPilotSettingsWindow *parent) : FrogPi
|
|||
} else if (param == "Navspeed") {
|
||||
FrogPilotParamManageControl *NavspeedToggle = new FrogPilotParamManageControl(param, title, desc, icon, this);
|
||||
QObject::connect(NavspeedToggle, &FrogPilotParamManageControl::manageButtonClicked, this, [this]() {
|
||||
showToggles();
|
||||
openParentToggle();
|
||||
for (auto &[key, toggle] : toggles) {
|
||||
toggle->setVisible(NavspeedKeys.find(key.c_str()) != NavspeedKeys.end());
|
||||
}
|
||||
|
@ -109,7 +109,7 @@ FrogPilotHFOPPanel::FrogPilotHFOPPanel(FrogPilotSettingsWindow *parent) : FrogPi
|
|||
} else if(param == "Dooropen") {
|
||||
FrogPilotParamManageControl *DooropenToggle = new FrogPilotParamManageControl(param, title, desc, icon, this);
|
||||
QObject::connect(DooropenToggle, &FrogPilotParamManageControl::manageButtonClicked, this, [this]() {
|
||||
showToggles();
|
||||
openParentToggle();
|
||||
for (auto &[key, toggle] : toggles) {
|
||||
toggle->setVisible(DooropenKeys.find(key.c_str()) != DooropenKeys.end());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue