summaryrefslogtreecommitdiffstats
path: root/gui
diff options
context:
space:
mode:
authorSky <git@bunnies.cc>2014-01-11 00:22:08 +0000
committerSky <git@bunnies.cc>2014-01-11 00:22:08 +0000
commit088ad07a8098d587aac54a582e1ef70f18ff5d17 (patch)
tree77861b487074ed03a36545d214ba077ad778aad8 /gui
parent9ddf2aec31e33e8e0fa450d0084f115471401ad4 (diff)
downloadMultiMC-088ad07a8098d587aac54a582e1ef70f18ff5d17.tar
MultiMC-088ad07a8098d587aac54a582e1ef70f18ff5d17.tar.gz
MultiMC-088ad07a8098d587aac54a582e1ef70f18ff5d17.tar.lz
MultiMC-088ad07a8098d587aac54a582e1ef70f18ff5d17.tar.xz
MultiMC-088ad07a8098d587aac54a582e1ef70f18ff5d17.zip
Show active account skin whilst it's checked for updates
Diffstat (limited to 'gui')
-rw-r--r--gui/MainWindow.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/gui/MainWindow.cpp b/gui/MainWindow.cpp
index 31e4b9e4..dba15e98 100644
--- a/gui/MainWindow.cpp
+++ b/gui/MainWindow.cpp
@@ -235,17 +235,20 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWi
connect(MMC->accounts().get(), &MojangAccountList::listChanged, [this]
{ repopulateAccountsMenu(); });
- std::shared_ptr<MojangAccountList> accounts = MMC->accounts();
+ // Show initial account
+ activeAccountChanged();
+
+ auto accounts = MMC->accounts();
// TODO: Nicer way to iterate?
for (int i = 0; i < accounts->count(); i++)
{
- MojangAccountPtr account = accounts->at(i);
+ auto account = accounts->at(i);
if (account != nullptr)
{
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 action = CacheDownload::make(