mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-17 23:56:56 +00:00
GODT-2258: change login label and suggest email instead of username.
This commit is contained in:
@ -55,6 +55,14 @@ void User::update(User const &user) {
|
||||
}
|
||||
|
||||
|
||||
//****************************************************************************************************************************************************
|
||||
/// \return The user's primary email. If not known, return turn username
|
||||
//****************************************************************************************************************************************************
|
||||
QString User::primaryEmailOrUsername() const {
|
||||
return addresses_.isEmpty() ? username_ : addresses_.front();
|
||||
}
|
||||
|
||||
|
||||
//****************************************************************************************************************************************************
|
||||
/// \param[in] makeItActive Should split mode be made active.
|
||||
//****************************************************************************************************************************************************
|
||||
|
||||
@ -73,6 +73,7 @@ public: // member functions.
|
||||
User &operator=(User const &) = delete; ///< Disabled assignment operator.
|
||||
User &operator=(User &&) = delete; ///< Disabled move assignment operator.
|
||||
void update(User const &user); ///< Update the user.
|
||||
Q_INVOKABLE QString primaryEmailOrUsername() const; ///< Return the user primary email, or, if unknown its username.
|
||||
|
||||
public slots:
|
||||
// slots for QML generated calls
|
||||
|
||||
Reference in New Issue
Block a user