mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-07-02 11:26:59 +03:00
First sweep moving URLs to a constants file
This commit is contained in:
parent
808ca76363
commit
979946b7bb
11 changed files with 56 additions and 20 deletions
|
|
@ -21,6 +21,7 @@
|
|||
#include <logger/QsLog.h>
|
||||
|
||||
#include <logic/net/NetJob.h>
|
||||
#include <logic/net/URLConstants.h>
|
||||
|
||||
#include <gui/dialogs/EditAccountDialog.h>
|
||||
#include <gui/dialogs/ProgressDialog.h>
|
||||
|
|
@ -134,7 +135,7 @@ void AccountListDialog::addAccount(const QString& errMsg)
|
|||
{
|
||||
auto meta = MMC->metacache()->resolveEntry("skins", profile.name + ".png");
|
||||
auto action = CacheDownload::make(
|
||||
QUrl("http://skins.minecraft.net/MinecraftSkins/" + profile.name + ".png"),
|
||||
QUrl("http://" + URLConstants::SKINS_BASE + profile.name + ".png"),
|
||||
meta);
|
||||
job->addNetAction(action);
|
||||
meta->stale = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue