mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
Load/Save settings in main.cpp
This commit is contained in:
parent
1e6e395623
commit
b47ebc0008
1 changed files with 7 additions and 1 deletions
8
main.cpp
8
main.cpp
|
@ -3,6 +3,7 @@
|
||||||
#include "emojis.h"
|
#include "emojis.h"
|
||||||
#include "ircmanager.h"
|
#include "ircmanager.h"
|
||||||
#include "resources.h"
|
#include "resources.h"
|
||||||
|
#include "settings/settings.h"
|
||||||
#include "widgets/mainwindow.h"
|
#include "widgets/mainwindow.h"
|
||||||
#include "windows.h"
|
#include "windows.h"
|
||||||
|
|
||||||
|
@ -17,6 +18,7 @@ main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
QApplication a(argc, argv);
|
QApplication a(argc, argv);
|
||||||
|
|
||||||
|
settings::Settings::getInstance().load();
|
||||||
Resources::load();
|
Resources::load();
|
||||||
Emojis::loadEmojis();
|
Emojis::loadEmojis();
|
||||||
|
|
||||||
|
@ -27,5 +29,9 @@ main(int argc, char *argv[])
|
||||||
|
|
||||||
IrcManager::connect();
|
IrcManager::connect();
|
||||||
|
|
||||||
return a.exec();
|
int ret = a.exec();
|
||||||
|
|
||||||
|
settings::Settings::getInstance().save();
|
||||||
|
|
||||||
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue