diff options
author | Jedi18 <targetakhil@gmail.com> | 2021-01-29 12:06:38 +0530 |
---|---|---|
committer | Jedi18 <targetakhil@gmail.com> | 2021-01-29 12:06:38 +0530 |
commit | e09e587796373d4cb2093689c82f9912e5f84c52 (patch) | |
tree | 4eabfbd9acb5d7ddc8d30c7aebca12d37e248056 /src/ui/UserProfile.cpp | |
parent | made requeste changes (diff) | |
download | nheko-e09e587796373d4cb2093689c82f9912e5f84c52.tar.xz |
shifted isUsernameEditingAllowed to qml from c++
Diffstat (limited to 'src/ui/UserProfile.cpp')
-rw-r--r-- | src/ui/UserProfile.cpp | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/ui/UserProfile.cpp b/src/ui/UserProfile.cpp index 9e8d45b5..3872294a 100644 --- a/src/ui/UserProfile.cpp +++ b/src/ui/UserProfile.cpp @@ -270,8 +270,6 @@ UserProfile::changeUsername(QString username) err->matrix_error.error); }); } - - allowUsernameEditing(false); } void @@ -291,19 +289,6 @@ UserProfile::unverify(QString device) } void -UserProfile::allowUsernameEditing(bool allow) -{ - usernameEditing = allow; - emit usernameEditingChanged(); -} - -bool -UserProfile::isUsernameEditingAllowed() const -{ - return usernameEditing; -} - -void UserProfile::setGlobalUsername(const QString &globalUser) { globalUsername = globalUser; |