mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
84e8937787
commit
3eb5ea9adf
3 changed files with 28 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue