2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-02 23:45:44 +00:00

Changed row in usernames list for editable one.

This commit is contained in:
23rd
2022-10-16 15:31:41 +03:00
committed by John Preston
parent ad70942d0e
commit bdd79aa2f2
5 changed files with 39 additions and 16 deletions

View File

@@ -294,6 +294,7 @@ void UsernamesBox(
const auto editor = box->addRow(
object_ptr<UsernameEditor>(box, session),
{});
box->setFocusCallback([=] { editor->setInnerFocus(); });
container->add(object_ptr<Ui::DividerLabel>(
container,
@@ -307,7 +308,11 @@ void UsernamesBox(
object_ptr<UsernamesList>(
box,
session->user(),
std::make_shared<Ui::BoxShow>(box)),
std::make_shared<Ui::BoxShow>(box),
[=] {
box->scrollToY(0);
editor->setInnerFocus();
}),
{});
const auto finish = [=] {