diff options
author | Andrew <forkk@forkk.net> | 2013-11-18 12:58:03 -0600 |
---|---|---|
committer | Andrew <forkk@forkk.net> | 2013-11-18 12:58:03 -0600 |
commit | a9a0b65358b3799746fa9c8e1aa879e0b59ef526 (patch) | |
tree | 9db6881e5409495edefd9f04ab3cca5f82674778 /MultiMC.cpp | |
parent | cdca53013990ac85967394529476712e6695bbf9 (diff) | |
download | MultiMC-a9a0b65358b3799746fa9c8e1aa879e0b59ef526.tar MultiMC-a9a0b65358b3799746fa9c8e1aa879e0b59ef526.tar.gz MultiMC-a9a0b65358b3799746fa9c8e1aa879e0b59ef526.tar.lz MultiMC-a9a0b65358b3799746fa9c8e1aa879e0b59ef526.tar.xz MultiMC-a9a0b65358b3799746fa9c8e1aa879e0b59ef526.zip |
Implement loading accounts from list.
Diffstat (limited to 'MultiMC.cpp')
-rw-r--r-- | MultiMC.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/MultiMC.cpp b/MultiMC.cpp index 1c70fb54..ae1401a6 100644 --- a/MultiMC.cpp +++ b/MultiMC.cpp @@ -10,6 +10,7 @@ #include "gui/MainWindow.h" #include "gui/dialogs/VersionSelectDialog.h" #include "logic/lists/InstanceList.h" +#include "logic/lists/MojangAccountList.h" #include "logic/lists/IconList.h" #include "logic/lists/LwjglVersionList.h" #include "logic/lists/MinecraftVersionList.h" @@ -146,6 +147,11 @@ MultiMC::MultiMC(int &argc, char **argv) : QApplication(argc, argv) connect(InstDirSetting, SIGNAL(settingChanged(const Setting &, QVariant)), m_instances.get(), SLOT(on_InstFolderChanged(const Setting &, QVariant))); + // and accounts + m_accounts.reset(new MojangAccountList(this)); + QLOG_INFO() << "Loading accounts..."; + m_accounts->loadList(); + // init the http meta cache initHttpMetaCache(); |