Config Backup: Remove sponsor check for restore

This commit is contained in:
DevTekVE
2024-05-17 16:41:38 +00:00
committed by Jason Wen
parent 27f495e5e7
commit b471da8975
@@ -107,16 +107,9 @@ 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();
}
if (ConfirmationDialog::confirm(tr("Are you sure you want to restore the last backed up sunnypilot settings?"), tr("Restore"), this)) {
backup_settings->getParams();
} 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;