mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
Set displayName to UserInfo link as value. (#675)
This commit is contained in:
parent
be4b3f1a38
commit
8a1c30408a
|
@ -438,7 +438,7 @@ void TwitchMessageBuilder::appendUsername()
|
||||||
this->emplace<TextElement>(usernameText, MessageElementFlag::Username,
|
this->emplace<TextElement>(usernameText, MessageElementFlag::Username,
|
||||||
this->usernameColor_,
|
this->usernameColor_,
|
||||||
FontStyle::ChatMediumBold)
|
FontStyle::ChatMediumBold)
|
||||||
->setLink({Link::UserInfo, this->userName});
|
->setLink({Link::UserInfo, this->message().displayName});
|
||||||
|
|
||||||
auto currentUser = app->accounts->twitch.getCurrent();
|
auto currentUser = app->accounts->twitch.getCurrent();
|
||||||
|
|
||||||
|
@ -464,7 +464,7 @@ void TwitchMessageBuilder::appendUsername()
|
||||||
this->emplace<TextElement>(usernameText, MessageElementFlag::Username,
|
this->emplace<TextElement>(usernameText, MessageElementFlag::Username,
|
||||||
this->usernameColor_,
|
this->usernameColor_,
|
||||||
FontStyle::ChatMediumBold)
|
FontStyle::ChatMediumBold)
|
||||||
->setLink({Link::UserInfo, this->userName});
|
->setLink({Link::UserInfo, this->message().displayName});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -52,7 +52,7 @@ UserInfoPopup::UserInfoPopup()
|
||||||
avatar->setScaleIndependantSize(100, 100);
|
avatar->setScaleIndependantSize(100, 100);
|
||||||
QObject::connect(avatar.getElement(), &Button::clicked, [this] {
|
QObject::connect(avatar.getElement(), &Button::clicked, [this] {
|
||||||
QDesktopServices::openUrl(
|
QDesktopServices::openUrl(
|
||||||
QUrl("https://twitch.tv/" + this->userName_));
|
QUrl("https://twitch.tv/" + this->userName_.toLower()));
|
||||||
});
|
});
|
||||||
|
|
||||||
// items on the right
|
// items on the right
|
||||||
|
|
Loading…
Reference in a new issue