Implement saving account list to file

Currently it only saves when accounts are added or removed. We'll have
to fix this, but we need signals for when account objects change first.
This commit is contained in:
Andrew 2013-11-19 12:53:30 -06:00
parent a9a0b65358
commit 928e0d0b15
4 changed files with 133 additions and 3 deletions

View file

@ -150,6 +150,7 @@ MultiMC::MultiMC(int &argc, char **argv) : QApplication(argc, argv)
// and accounts
m_accounts.reset(new MojangAccountList(this));
QLOG_INFO() << "Loading accounts...";
m_accounts->setListFilePath("accounts.json", true);
m_accounts->loadList();
// init the http meta cache