1
Fork 0
mirror of https://github.com/redstrate/Astra.git synced 2025-06-07 14:37:45 +00:00

Remove some unused lambda captures

This commit is contained in:
Joshua Goins 2025-06-02 16:40:17 -04:00
parent 45d3255682
commit 7c54bea58c
2 changed files with 2 additions and 2 deletions

View file

@ -201,7 +201,7 @@ void LauncherCore::fetchAvatar(Account *account)
Utility::printRequest(QStringLiteral("GET"), avatarRequest);
auto avatarReply = mgr()->get(avatarRequest);
connect(avatarReply, &QNetworkReply::finished, [this, filename, avatarReply, account] {
connect(avatarReply, &QNetworkReply::finished, [filename, avatarReply, account] {
QFile file(filename);
file.open(QIODevice::ReadWrite);
file.write(avatarReply->readAll());

View file

@ -152,7 +152,7 @@ QCoro::Task<bool> Patcher::patch(const physis_PatchList &patchList)
updateDownloadProgress(ourIndex, received);
});
connect(patchReply, &QNetworkReply::readyRead, this, [this, tempPatchPath, patchReply] {
connect(patchReply, &QNetworkReply::readyRead, this, [tempPatchPath, patchReply] {
// TODO: don't open the file each time we receive data
QFile file(tempPatchPath);
file.open(QIODevice::WriteOnly | QIODevice::Append);