Update settings.cc

This commit is contained in:
huifan 2024-11-03 22:25:06 +08:00
parent a9d5c69068
commit 37f0029e29
1 changed files with 5 additions and 5 deletions

View File

@ -507,29 +507,29 @@ SettingsWindow::SettingsWindow(QWidget *parent) : QFrame(parent) {
int openpilotHours = params.getInt("openpilotMinutes") / 60;
if (frogpilotHours < 1 && openpilotHours < 100) {
if (FrogPilotConfirmationDialog::toggleAlert(tr("Welcome to FrogPilot! Since you're new to FrogPilot, the 'Basic' toggle preset has been applied, but you can change this at any time via the 'Customization Level' button!"), tr("Sounds good!"), this)) {
if (FrogPilotConfirmationDialog::toggleAlert(tr("歡迎使用青蛙&HFOP由於您是新手因此已套用「基本」切換預設但您可以隨時透過「自訂等級」按鈕變更此設定"), tr("知道了!"), this)) {
params.putBoolNonBlocking("CustomizationLevelConfirmed", true);
params.putIntNonBlocking("CustomizationLevel", 0);
}
} else if (frogpilotHours < 50 && openpilotHours < 100) {
if (FrogPilotConfirmationDialog::toggleAlert(tr("Since you're fairly new to FrogPilot, the 'Basic' toggle preset has been applied, but you can change this at any time via the 'Customization Level' button!"), tr("Sounds good!"), this)) {
if (FrogPilotConfirmationDialog::toggleAlert(tr("由於您對 青蛙&HFOP 相當陌生,因此已套用「基本」切換預設,但您可以隨時透過「自訂等級」按鈕變更此設定!"), tr("知道了!"), this)) {
params.putBoolNonBlocking("CustomizationLevelConfirmed", true);
params.putIntNonBlocking("CustomizationLevel", 0);
}
} else if (frogpilotHours < 100) {
if (openpilotHours >= 100 && frogpilotHours < 100) {
if (FrogPilotConfirmationDialog::toggleAlert(tr("Since you're experienced with openpilot, the 'Standard' toggle preset has been applied, but you can change this at any time via the 'Customization Level' button!"), tr("Sounds good!"), this)) {
if (FrogPilotConfirmationDialog::toggleAlert(tr("由於您對 青蛙&HFOP 有豐富的經驗,因此已套用「標準」切換預設,但您可以隨時透過「自訂等級」按鈕變更此設置!"), tr("知道了!"), this)) {
params.putBoolNonBlocking("CustomizationLevelConfirmed", true);
params.putIntNonBlocking("CustomizationLevel", 1);
}
} else {
if (FrogPilotConfirmationDialog::toggleAlert(tr("Since you're experienced with FrogPilot, the 'Standard' toggle preset has been applied, but you can change this at any time via the 'Customization Level' button!"), tr("Sounds good!"), this)) {
if (FrogPilotConfirmationDialog::toggleAlert(tr("由於您具有使用 青蛙&HFOP 的經驗,因此已套用「標準」切換預設,但您可以隨時透過「自訂等級」按鈕變更此設置!"), tr("知道了!"), this)) {
params.putBoolNonBlocking("CustomizationLevelConfirmed", true);
params.putIntNonBlocking("CustomizationLevel", 1);
}
}
} else if (frogpilotHours >= 100) {
if (FrogPilotConfirmationDialog::toggleAlert(tr("Since you're very experienced with FrogPilot, the 'Advanced' toggle preset has been applied, but you can change this at any time via the 'Customization Level' button!"), tr("Sounds good!"), this)) {
if (FrogPilotConfirmationDialog::toggleAlert(tr("由於您對 青蛙&HFOP 非常有經驗,因此已套用「進階」切換預設,但您可以隨時透過「自訂等級」按鈕變更此設置!"), tr("知道了!"), this)) {
params.putBoolNonBlocking("CustomizationLevelConfirmed", true);
params.putIntNonBlocking("CustomizationLevel", 2);
}