mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-27 16:02:00 +00:00
Moved contacts box preparing to single place.
This commit is contained in:
@@ -950,18 +950,7 @@ void MainWindow::createGlobalMenu() {
|
||||
return;
|
||||
}
|
||||
|
||||
Ui::show(
|
||||
Box<PeerListBox>(std::make_unique<ContactsBoxController>(
|
||||
sessionController()),
|
||||
[](not_null<PeerListBox*> box) {
|
||||
box->addButton(tr::lng_close(), [box] {
|
||||
box->closeBox();
|
||||
});
|
||||
|
||||
box->addLeftButton(tr::lng_profile_add_contact(), [] {
|
||||
App::wnd()->onShowAddContact();
|
||||
});
|
||||
}));
|
||||
Ui::show(PrepareContactsBox(sessionController()));
|
||||
}));
|
||||
|
||||
psAddContact = tools->addAction(
|
||||
|
||||
Reference in New Issue
Block a user