mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
Add caller() proxy function to APIRequest
This commit is contained in:
parent
fc4c1c5fb9
commit
016c7eb95c
2 changed files with 7 additions and 0 deletions
|
@ -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();
|
||||||
|
|
|
@ -860,6 +860,7 @@ void UserInfoPopup::updateUserData()
|
||||||
}
|
}
|
||||||
return Success;
|
return Success;
|
||||||
})
|
})
|
||||||
|
.caller(this)
|
||||||
.execute();
|
.execute();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue