fixed settings not saving

This commit is contained in:
fourtf 2017-01-24 16:44:54 +01:00
parent 9041dbf014
commit ad4c2901af

View file

@ -10,12 +10,13 @@ Settings Settings::instance;
Settings::Settings() Settings::Settings()
: settings( : settings(
QStandardPaths::writableLocation(QStandardPaths::AppDataLocation), QStandardPaths::writableLocation(QStandardPaths::AppDataLocation) +
"/Chatterino/newsettings.ini",
QSettings::IniFormat) QSettings::IniFormat)
, portable(false) , portable(false)
, wordTypeMask(messages::Word::Default) , wordTypeMask(messages::Word::Default)
, theme(this->settingsItems, "theme", "dark") , theme(this->settingsItems, "theme", "dark")
, user(this->settingsItems, "userNotSureWhatThisMaybeOAuthOrSomething", "") , user(this->settingsItems, "selectedUser", "")
, emoteScale(this->settingsItems, "emoteScale", 1.0) , emoteScale(this->settingsItems, "emoteScale", 1.0)
, scaleEmotesByLineHeight(this->settingsItems, "scaleEmotesByLineHeight", , scaleEmotesByLineHeight(this->settingsItems, "scaleEmotesByLineHeight",
false) false)