This commit is contained in:
firestar5683
2026-03-11 18:07:29 -05:00
parent 39ad7e897f
commit 52d87de588
4 changed files with 6 additions and 3 deletions
+3 -1
View File
@@ -405,7 +405,9 @@ void FrogPilotVehiclesPanel::updateToggles() {
bool setVisible = tuningLevel >= frogpilotToggleLevels[key].toDouble();
if (gmKeys.contains(key)) {
if (key == "ClusterOffset") {
setVisible &= isGM || isToyota;
} else if (gmKeys.contains(key)) {
setVisible &= isGM;
} else if (hkgKeys.contains(key)) {
setVisible &= isHKG;
+1 -1
View File
@@ -39,7 +39,7 @@ private:
QSet<QString> gmKeys = {"GMPedalLongitudinal", "LongPitch", "RedPanda", "RemapCancelToDistance", "RemoteStartBootsComma", "VoltSNG"};
QSet<QString> hkgKeys = {"NewLongAPI", "TacoTuneHacks"};
QSet<QString> longitudinalKeys = {"FrogsGoMoosTweak", "LongPitch", "NewLongAPI", "RemapCancelToDistance", "SNGHack", "VoltSNG"};
QSet<QString> toyotaKeys = {"ClusterOffset", "FrogsGoMoosTweak", "LockDoorsTimer", "SNGHack", "ToyotaDoors"};
QSet<QString> toyotaKeys = {"FrogsGoMoosTweak", "LockDoorsTimer", "SNGHack", "ToyotaDoors"};
QSet<QString> vehicleInfoKeys = {"BlindSpotSupport", "HardwareDetected", "OpenpilotLongitudinal", "PedalSupport", "RadarSupport", "SASCMSupport", "SDSUSupport", "SNGSupport"};
QSet<QString> parentKeys;