diff options
author | Petr Mrázek <peterix@gmail.com> | 2015-09-28 22:43:57 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2015-09-28 22:43:57 +0200 |
commit | ccb5fc6f4ab09fac602f268f36d077a42aaef1bd (patch) | |
tree | dc2eaccd696612d4d4e235903440d2d91defe099 /application/MainWindow.cpp | |
parent | 1cbe543b3985c5e5b0a7a65390e0e8ea9afafade (diff) | |
download | MultiMC-ccb5fc6f4ab09fac602f268f36d077a42aaef1bd.tar MultiMC-ccb5fc6f4ab09fac602f268f36d077a42aaef1bd.tar.gz MultiMC-ccb5fc6f4ab09fac602f268f36d077a42aaef1bd.tar.lz MultiMC-ccb5fc6f4ab09fac602f268f36d077a42aaef1bd.tar.xz MultiMC-ccb5fc6f4ab09fac602f268f36d077a42aaef1bd.zip |
GH-1072 use crafatar for grabbing the user skin
Diffstat (limited to 'application/MainWindow.cpp')
-rw-r--r-- | application/MainWindow.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/application/MainWindow.cpp b/application/MainWindow.cpp index 4ba717d3..a3a62f30 100644 --- a/application/MainWindow.cpp +++ b/application/MainWindow.cpp @@ -548,9 +548,9 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWi { for (auto profile : account->profiles()) { - auto meta = Env::getInstance().metacache()->resolveEntry("skins", profile.name + ".png"); + auto meta = Env::getInstance().metacache()->resolveEntry("skins", profile.id + ".png"); auto action = CacheDownload::make( - QUrl("http://" + URLConstants::SKINS_BASE + profile.name + ".png"), meta); + QUrl("https://" + URLConstants::SKINS_BASE + profile.id + ".png"), meta); skin_dls.append(action); meta->stale = true; } @@ -775,7 +775,7 @@ void MainWindow::repopulateAccountsMenu() action->setChecked(true); } - action->setIcon(SkinUtils::getFaceFromCache(profile.name)); + action->setIcon(SkinUtils::getFaceFromCache(profile.id)); accountMenu->addAction(action); connect(action, SIGNAL(triggered(bool)), SLOT(changeActiveAccount())); } @@ -834,7 +834,7 @@ void MainWindow::activeAccountChanged() const AccountProfile *profile = account->currentProfile(); if (profile != nullptr) { - accountMenuButton->setIcon(SkinUtils::getFaceFromCache(profile->name)); + accountMenuButton->setIcon(SkinUtils::getFaceFromCache(profile->id)); accountMenuButton->setText(profile->name); return; } |