2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 22:55:11 +00:00

Remove twidget header.

This commit is contained in:
John Preston
2019-09-13 15:22:54 +03:00
parent e2f54eb3e9
commit c5845f17ae
188 changed files with 1070 additions and 907 deletions

View File

@@ -57,7 +57,7 @@ void SetCloudPassword(not_null<GenericBox*> box, not_null<UserData*> user) {
user->session().api().passwordState(
) | rpl::start_with_next([=] {
using namespace Settings;
const auto weak = make_weak(box);
const auto weak = Ui::MakeWeak(box);
if (CheckEditCloudPassword(&user->session())) {
box->getDelegate()->show(
EditCloudPasswordBox(&user->session()));
@@ -580,7 +580,7 @@ void EditAdminBox::sendTransferRequestFrom(
if (_transferRequestId) {
return;
}
const auto weak = make_weak(this);
const auto weak = Ui::MakeWeak(this);
const auto user = this->user();
const auto api = &channel->session().api();
_transferRequestId = api->request(MTPchannels_EditCreator(
@@ -626,7 +626,7 @@ void EditAdminBox::sendTransferRequestFrom(
|| (type == qstr("PASSWORD_TOO_FRESH_XXX"))
|| (type == qstr("SESSION_TOO_FRESH_XXX"));
}();
const auto weak = make_weak(this);
const auto weak = Ui::MakeWeak(this);
getDelegate()->show(Box<InformBox>(problem));
if (box) {
box->closeBox();