chore: clean up some of the pronoun implementation (#5583)
This commit is contained in:
@@ -962,19 +962,19 @@ void UserInfoPopup::updateUserData()
|
||||
// get pronouns
|
||||
if (getSettings()->showPronouns)
|
||||
{
|
||||
getApp()->getPronouns()->fetch(
|
||||
getApp()->getPronouns()->getUserPronoun(
|
||||
user.login,
|
||||
[this, hack](const auto pronouns) {
|
||||
[this, hack](const auto userPronoun) {
|
||||
runInGuiThread([this, hack,
|
||||
pronouns = std::move(pronouns)]() {
|
||||
userPronoun = std::move(userPronoun)]() {
|
||||
if (!hack.lock() || this->ui_.pronounsLabel == nullptr)
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (!pronouns.isUnspecified())
|
||||
if (!userPronoun.isUnspecified())
|
||||
{
|
||||
this->ui_.pronounsLabel->setText(
|
||||
TEXT_PRONOUNS.arg(pronouns.format()));
|
||||
TEXT_PRONOUNS.arg(userPronoun.format()));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user