Remember the matrixId during login when moving back from password
Remember the matrixId during login when moving back from password BUG: 489976
This commit is contained in:
@@ -23,6 +23,7 @@ LoginStep {
|
|||||||
FormCard.FormTextFieldDelegate {
|
FormCard.FormTextFieldDelegate {
|
||||||
id: matrixIdField
|
id: matrixIdField
|
||||||
label: i18n("Matrix ID:")
|
label: i18n("Matrix ID:")
|
||||||
|
text: LoginHelper.matrixId
|
||||||
placeholderText: "@user:example.org"
|
placeholderText: "@user:example.org"
|
||||||
Accessible.name: i18n("Matrix ID")
|
Accessible.name: i18n("Matrix ID")
|
||||||
onTextChanged: {
|
onTextChanged: {
|
||||||
|
|||||||
@@ -135,7 +135,7 @@ QString LoginHelper::matrixId() const
|
|||||||
void LoginHelper::setMatrixId(const QString &matrixId)
|
void LoginHelper::setMatrixId(const QString &matrixId)
|
||||||
{
|
{
|
||||||
m_matrixId = matrixId;
|
m_matrixId = matrixId;
|
||||||
if (!m_matrixId.startsWith(QLatin1Char('@'))) {
|
if (!m_matrixId.isEmpty() && !m_matrixId.startsWith(QLatin1Char('@'))) {
|
||||||
m_matrixId.prepend(QLatin1Char('@'));
|
m_matrixId.prepend(QLatin1Char('@'));
|
||||||
}
|
}
|
||||||
Q_EMIT matrixIdChanged();
|
Q_EMIT matrixIdChanged();
|
||||||
|
|||||||
Reference in New Issue
Block a user