- the light theme is now automatically written sot the settings file to prevent having to switch the dark mode on and off two times at the first time
This commit is contained in:
parent
721da8c178
commit
321a8ea1f1
1 changed files with 3 additions and 0 deletions
|
@ -38,6 +38,9 @@ AppSettings::AppSettings(QObject* parent)
|
||||||
if(loadSetting("grade") == "false"){
|
if(loadSetting("grade") == "false"){
|
||||||
this->writeSetting("grade", 5);
|
this->writeSetting("grade", 5);
|
||||||
}
|
}
|
||||||
|
if(loadSetting("theme") == "false"){
|
||||||
|
this->writeSetting("theme", "Light");
|
||||||
|
}
|
||||||
|
|
||||||
this->filtersFile = new QFile(path + "/fannyapp/filters.json");
|
this->filtersFile = new QFile(path + "/fannyapp/filters.json");
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue