Add caller() proxy function to APIRequest

This commit is contained in:
Mm2PL 2022-09-16 23:47:24 +02:00
parent fc4c1c5fb9
commit 016c7eb95c
No known key found for this signature in database
GPG key ID: 94AC9B80EFA15ED9
2 changed files with 7 additions and 0 deletions

View file

@ -115,6 +115,12 @@ public:
return std::move(*this); return std::move(*this);
}; };
APIRequest<OkType, ErrorType> caller(const QObject *caller) &&
{
this->underlying_ = std::move(this->underlying_).caller(caller);
return std::move(*this);
}
void execute() void execute()
{ {
this->underlying_.execute(); this->underlying_.execute();

View file

@ -860,6 +860,7 @@ void UserInfoPopup::updateUserData()
} }
return Success; return Success;
}) })
.caller(this)
.execute(); .execute();
}; };