mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-06-22 02:01:08 +07:00
fix: correctly save password on set or change
This commit is contained in:
@@ -223,6 +223,26 @@ QString SettingsUiController::getHint()
|
||||
return m_settingsController->getHint();
|
||||
}
|
||||
|
||||
void SettingsUiController::setTempPassword(QString pwd)
|
||||
{
|
||||
tempPassword = pwd;
|
||||
}
|
||||
|
||||
QString SettingsUiController::getTempPassword()
|
||||
{
|
||||
return tempPassword;
|
||||
}
|
||||
|
||||
void SettingsUiController::setTempHint(QString hint)
|
||||
{
|
||||
tempHint = hint;
|
||||
}
|
||||
|
||||
QString SettingsUiController::getTempHint()
|
||||
{
|
||||
return tempHint;
|
||||
}
|
||||
|
||||
bool SettingsUiController::isAutoConnectEnabled()
|
||||
{
|
||||
return m_settingsController->isAutoConnectEnabled();
|
||||
|
||||
@@ -81,6 +81,11 @@ public slots:
|
||||
bool isNewsNotificationsEnabled();
|
||||
void toggleNewsNotificationsEnabled(bool enable);
|
||||
|
||||
void setTempPassword(QString pwd);
|
||||
QString getTempPassword();
|
||||
void setTempHint(QString hint);
|
||||
QString getTempHint();
|
||||
|
||||
bool isScreenshotsEnabled();
|
||||
void toggleScreenshotsEnabled(bool enable);
|
||||
|
||||
@@ -151,6 +156,9 @@ signals:
|
||||
void changingPassword();
|
||||
|
||||
private:
|
||||
QString tempPassword;
|
||||
QString tempHint;
|
||||
|
||||
SettingsController* m_settingsController;
|
||||
ServersController* m_serversController;
|
||||
LanguageUiController* m_languageUiController;
|
||||
|
||||
Reference in New Issue
Block a user