mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2025-06-12 05:07:46 +02:00
NOISSUE continue refactoring things to make tests pass
This commit is contained in:
@ -1,7 +1,9 @@
|
||||
#include "SkinUpload.h"
|
||||
|
||||
#include <QNetworkRequest>
|
||||
#include <QHttpMultiPart>
|
||||
#include <Env.h>
|
||||
|
||||
#include "Application.h"
|
||||
|
||||
QByteArray getVariant(SkinUpload::Model model) {
|
||||
switch (model) {
|
||||
@ -37,7 +39,7 @@ void SkinUpload::executeTask()
|
||||
multiPart->append(skin);
|
||||
multiPart->append(model);
|
||||
|
||||
QNetworkReply *rep = ENV->network().post(request, multiPart);
|
||||
QNetworkReply *rep = APPLICATION->network()->post(request, multiPart);
|
||||
m_reply = std::shared_ptr<QNetworkReply>(rep);
|
||||
|
||||
setStatus(tr("Uploading skin"));
|
||||
|
Reference in New Issue
Block a user