mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
Ensure Twitch username in UserCard uses display name from API (#2160)
This commit is contained in:
parent
29d0ef6923
commit
fbd5df53d8
3 changed files with 5 additions and 0 deletions
|
@ -2,6 +2,7 @@
|
|||
|
||||
## Unversioned
|
||||
|
||||
- Minor: Made usercard update user's display name (#2160)
|
||||
- Minor: Added placeholder text for message text input box. (#2143, #2149)
|
||||
- Minor: Added support for FrankerFaceZ badges. (#2101, part of #1658)
|
||||
- Minor: Added a navigation list to the settings and reordered them.
|
||||
|
|
|
@ -25,9 +25,11 @@ struct KrakenChannel {
|
|||
|
||||
struct KrakenUser {
|
||||
const QString createdAt;
|
||||
const QString displayName;
|
||||
|
||||
KrakenUser(QJsonObject jsonObject)
|
||||
: createdAt(jsonObject.value("created_at").toString())
|
||||
, displayName(jsonObject.value("display_name").toString())
|
||||
{
|
||||
}
|
||||
};
|
||||
|
|
|
@ -586,6 +586,8 @@ void UserInfoPopup::updateUserData()
|
|||
{
|
||||
return;
|
||||
}
|
||||
this->ui_.nameLabel->setText(user.displayName);
|
||||
this->setWindowTitle(TEXT_TITLE.arg(user.displayName));
|
||||
this->ui_.createdDateLabel->setText(
|
||||
TEXT_CREATED.arg(user.createdAt.section("T", 0, 0)));
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue