shifted isUsernameEditingAllowed to qml from c++

This commit is contained in:
Jedi18 2021-01-29 12:06:38 +05:30
parent 9b5a287d14
commit e09e587796
3 changed files with 14 additions and 28 deletions

View file

@ -270,8 +270,6 @@ UserProfile::changeUsername(QString username)
err->matrix_error.error);
});
}
allowUsernameEditing(false);
}
void
@ -290,19 +288,6 @@ UserProfile::unverify(QString device)
cache::markDeviceUnverified(userid_.toStdString(), device.toStdString());
}
void
UserProfile::allowUsernameEditing(bool allow)
{
usernameEditing = allow;
emit usernameEditingChanged();
}
bool
UserProfile::isUsernameEditingAllowed() const
{
return usernameEditing;
}
void
UserProfile::setGlobalUsername(const QString &globalUser)
{