mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-30 14:17:45 +00:00
Fix edit bio in Settings.
This commit is contained in:
@@ -90,7 +90,12 @@ void InfoWidget::refreshUsername() {
|
|||||||
usernameText.text = '@' + self()->username;
|
usernameText.text = '@' + self()->username;
|
||||||
copyText = lang(lng_context_copy_mention);
|
copyText = lang(lng_context_copy_mention);
|
||||||
}
|
}
|
||||||
usernameText.entities.push_back(EntityInText(EntityInTextCustomUrl, 0, usernameText.text.size(), Messenger::Instance().createInternalLinkFull(self()->username)));
|
usernameText.entities.push_back(EntityInText(
|
||||||
|
EntityInTextCustomUrl,
|
||||||
|
0,
|
||||||
|
usernameText.text.size(),
|
||||||
|
Messenger::Instance().createInternalLinkFull(
|
||||||
|
self()->username)));
|
||||||
setLabeledText(
|
setLabeledText(
|
||||||
_username,
|
_username,
|
||||||
lang(lng_profile_username),
|
lang(lng_profile_username),
|
||||||
@@ -113,7 +118,11 @@ void InfoWidget::refreshBio() {
|
|||||||
} else {
|
} else {
|
||||||
bioText.text = aboutText;
|
bioText.text = aboutText;
|
||||||
}
|
}
|
||||||
bioText.entities.push_back(EntityInText(EntityInTextCustomUrl, 0, bioText.text.size(), QString()));
|
bioText.entities.push_back(EntityInText(
|
||||||
|
EntityInTextCustomUrl,
|
||||||
|
0,
|
||||||
|
bioText.text.size(),
|
||||||
|
QString("internal:edit_bio")));
|
||||||
setLabeledText(
|
setLabeledText(
|
||||||
_bio,
|
_bio,
|
||||||
lang(lng_profile_bio),
|
lang(lng_profile_bio),
|
||||||
|
Reference in New Issue
Block a user