Clean up skins, remove wrapper, save to accounts/skins
This commit is contained in:
@@ -206,8 +206,7 @@ void LoginDialog::userTextChanged ( const QString& user )
|
||||
}
|
||||
}
|
||||
|
||||
if(gotFace) ui->lblFace->setVisible(true);
|
||||
else ui->lblFace->setVisible(false);
|
||||
ui->lblFace->setVisible(gotFace);
|
||||
blockToggles = false;
|
||||
}
|
||||
|
||||
|
||||
@@ -57,7 +57,6 @@
|
||||
#include "logic/lists/JavaVersionList.h"
|
||||
|
||||
#include "logic/net/LoginTask.h"
|
||||
#include "logic/net/SkinDownload.h"
|
||||
|
||||
#include "logic/BaseInstance.h"
|
||||
#include "logic/InstanceFactory.h"
|
||||
@@ -520,9 +519,13 @@ void MainWindow::onLoginComplete()
|
||||
delete updateTask;
|
||||
}
|
||||
|
||||
auto download = new SkinDownload(m_activeLogin.player_name);
|
||||
download->start();
|
||||
auto job = new DownloadJob("Player skin: " + m_activeLogin.player_name);
|
||||
|
||||
auto meta = MMC->metacache()->resolveEntry("skins", m_activeLogin.player_name + ".png");
|
||||
job->addCacheDownload(QUrl("http://skins.minecraft.net/MinecraftSkins/" + m_activeLogin.player_name + ".png"), meta);
|
||||
meta->stale = true;
|
||||
|
||||
job->start();
|
||||
auto filename = MMC->metacache()->resolveEntry("skins", "skins.json")->getFullPath();
|
||||
QFile listFile(filename);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user