Updated Settings to cleanup logic plus add a note for hard coded paths.
This commit is contained in:
parent
33fafb29a8
commit
c6d82f5f55
File diff suppressed because it is too large
Load Diff
|
@ -37,11 +37,7 @@ void SettingsManager::readFromFile()
|
||||||
|
|
||||||
for (auto& it : lines)
|
for (auto& it : lines)
|
||||||
{
|
{
|
||||||
if (it.startsWith("<qkList>"))
|
if (it.startsWith("<bgOn>"))
|
||||||
{
|
|
||||||
m_listOfDirs = QString(it.right(it.size() - it.indexOf('>') - 1)).split(";");
|
|
||||||
}
|
|
||||||
else if (it.startsWith("<bgOn>"))
|
|
||||||
{
|
{
|
||||||
QList<QByteArray> values = it.right(it.size() - it.indexOf('>') - 1).split(';');
|
QList<QByteArray> values = it.right(it.size() - it.indexOf('>') - 1).split(';');
|
||||||
|
|
||||||
|
@ -90,6 +86,10 @@ void SettingsManager::readFromFile()
|
||||||
{
|
{
|
||||||
m_ambient = it.right(it.size() - it.indexOf('>') - 1).toFloat();
|
m_ambient = it.right(it.size() - it.indexOf('>') - 1).toFloat();
|
||||||
}
|
}
|
||||||
|
else if (it.startsWith("<qkList>"))
|
||||||
|
{
|
||||||
|
m_listOfDirs = QString(it.right(it.size() - it.indexOf('>') - 1)).split(";");
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
m_file.close();
|
m_file.close();
|
||||||
|
|
Loading…
Reference in New Issue