summaryrefslogtreecommitdiffstats
path: root/gui
diff options
context:
space:
mode:
Diffstat (limited to 'gui')
-rw-r--r--gui/logindialog.cpp3
-rw-r--r--gui/mainwindow.cpp9
2 files changed, 7 insertions, 5 deletions
diff --git a/gui/logindialog.cpp b/gui/logindialog.cpp
index 332b5d38..aeaaaa9e 100644
--- a/gui/logindialog.cpp
+++ b/gui/logindialog.cpp
@@ -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;
}
diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp
index b68af5fa..f5503754 100644
--- a/gui/mainwindow.cpp
+++ b/gui/mainwindow.cpp
@@ -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);