desktop: add password reset to cloud preferences

This must be the number one support request we get. I can't believe we never
thought of adding a button to do this.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2024-01-25 06:51:40 -08:00
parent 84e8937787
commit 3eb5ea9adf
3 changed files with 28 additions and 3 deletions

View file

@ -7,6 +7,7 @@
#include "core/settings/qPrefCloudStorage.h"
#include <QRegularExpression>
#include <QMessageBox>
#include <QDesktopServices>
PreferencesCloud::PreferencesCloud() : AbstractPreferencesWidget(tr("Cloud"),QIcon(":preferences-cloud-icon"), 9), ui(new Ui::PreferencesCloud())
{
@ -22,6 +23,11 @@ PreferencesCloud::~PreferencesCloud()
delete ui;
}
void PreferencesCloud::on_resetPassword_clicked()
{
QDesktopServices::openUrl(QUrl("https://cloud.subsurface-divelog.org/passwordreset"));
}
void PreferencesCloud::refreshSettings()
{
ui->cloud_storage_email->setText(prefs.cloud_storage_email);