mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-09-30 04:03:44 +08:00
Config Backup: Remove sponsor check for restore
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user