mirror of
https://github.com/MultiMC/MultiMC5.git
synced 2024-12-26 00:15:16 +00:00
Merge https://github.com/Drayshak/MultiMC5 into develop
This commit is contained in:
commit
498520446f
@ -235,17 +235,20 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWi
|
|||||||
connect(MMC->accounts().get(), &MojangAccountList::listChanged, [this]
|
connect(MMC->accounts().get(), &MojangAccountList::listChanged, [this]
|
||||||
{ repopulateAccountsMenu(); });
|
{ repopulateAccountsMenu(); });
|
||||||
|
|
||||||
std::shared_ptr<MojangAccountList> accounts = MMC->accounts();
|
// Show initial account
|
||||||
|
activeAccountChanged();
|
||||||
|
|
||||||
|
auto accounts = MMC->accounts();
|
||||||
|
|
||||||
// TODO: Nicer way to iterate?
|
// TODO: Nicer way to iterate?
|
||||||
for (int i = 0; i < accounts->count(); i++)
|
for (int i = 0; i < accounts->count(); i++)
|
||||||
{
|
{
|
||||||
MojangAccountPtr account = accounts->at(i);
|
auto account = accounts->at(i);
|
||||||
if (account != nullptr)
|
if (account != nullptr)
|
||||||
{
|
{
|
||||||
auto job = new NetJob("Startup player skins: " + account->username());
|
auto job = new NetJob("Startup player skins: " + account->username());
|
||||||
|
|
||||||
for (AccountProfile profile : account->profiles())
|
for (auto profile : account->profiles())
|
||||||
{
|
{
|
||||||
auto meta = MMC->metacache()->resolveEntry("skins", profile.name + ".png");
|
auto meta = MMC->metacache()->resolveEntry("skins", profile.name + ".png");
|
||||||
auto action = CacheDownload::make(
|
auto action = CacheDownload::make(
|
||||||
|
Loading…
Reference in New Issue
Block a user