From 82a4fea539cca888c6def6f1b9dda45be4855984 Mon Sep 17 00:00:00 2001 From: DevTekVE Date: Fri, 17 May 2024 18:27:36 +0200 Subject: [PATCH] Remove sponsor check for restoring sunnypilot settings This commit removes the clause checking whether the user is a Sunnylink sponsor before proceeding with the restoration of sunnypilot settings. Now, all users, regardless of their sponsorship status, can restore their sunnypilot settings. The related prompts and UI elements have also been cleaned up accordingly. --- selfdrive/ui/qt/offroad/sunnypilot/sunnylink_settings.cc | 7 ------- 1 file changed, 7 deletions(-) diff --git a/selfdrive/ui/qt/offroad/sunnypilot/sunnylink_settings.cc b/selfdrive/ui/qt/offroad/sunnypilot/sunnylink_settings.cc index e765792b4d..a065d4ab43 100644 --- a/selfdrive/ui/qt/offroad/sunnypilot/sunnylink_settings.cc +++ b/selfdrive/ui/qt/offroad/sunnypilot/sunnylink_settings.cc @@ -107,18 +107,11 @@ SunnylinkPanel::SunnylinkPanel(QWidget* parent) : QFrame(parent) { connect(restoreSettings, &QPushButton::clicked, [=]() { is_restore = true; backup_settings->started(); - if (uiState()->isSunnylinkSponsor()) { if (ConfirmationDialog::confirm(tr("Are you sure you want to restore the last backed up sunnypilot settings?"), tr("Restore"), this)) { backup_settings->getParams(); } else { backup_settings->finished(); } - } else { - if (ConfirmationDialog::confirm(tr("Early alpha access only. Become a sponsor to get early access to sunnylink features."), tr("Become a Sponsor"), this)) { - status_popup->exec(); - } - backup_settings->finished(); - } is_restore = false; }); connect(backup_settings, &BackupSettings::updateLabels, this, &SunnylinkPanel::updateLabels);