2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-05 00:46:08 +00:00

Show more frozen errors.

This commit is contained in:
John Preston
2025-03-21 18:56:43 +04:00
parent 44d9525476
commit 906fc9cc1d
5 changed files with 24 additions and 2 deletions

View File

@@ -453,12 +453,18 @@ void SetupRows(
Ui::AddSkip(container);
const auto showEditName = [=] {
if (controller->showFrozenError()) {
return;
}
controller->show(Box<EditNameBox>(self));
};
AddRow(
container,
tr::lng_settings_name_label(),
Info::Profile::NameValue(self) | Ui::Text::ToWithEntities(),
tr::lng_profile_copy_fullname(tr::now),
[=] { controller->show(Box<EditNameBox>(self)); },
showEditName,
{ &st::menuIconProfile });
const auto showChangePhone = [=] {
@@ -508,6 +514,9 @@ void SetupRows(
std::move(value),
tr::lng_context_copy_mention(tr::now),
[=] {
if (controller->showFrozenError()) {
return;
}
const auto box = controller->show(
Box(UsernamesBox, session->user()));
box->boxClosing(