#6538 Added check if system config doesnt exist then copy from user settings
This commit is contained in:
parent
f77bc2acff
commit
62607ec390
1 changed files with 6 additions and 2 deletions
|
|
@ -446,8 +446,12 @@ void AppConfig::setLoadFromSystemScope(bool value) {
|
|||
m_LoadFromSystemScope = value;
|
||||
m_unsavedChanges = true;
|
||||
writer->globalSave(); //Save user prefs
|
||||
writer->setScope(ConfigWriter::kSystem); //Switch the the System Scope and reload
|
||||
writer->globalLoad();
|
||||
writer->setScope(ConfigWriter::kSystem); //Switch the the System Scope
|
||||
//If the system scope has settings, trigger a global reload, otherwise keep the current users settings
|
||||
if (writer->hasSetting(settingName(kScreenName), ConfigWriter::kUser)) {
|
||||
// If the system already has settings, then load them up now.
|
||||
writer->globalLoad();
|
||||
}
|
||||
}
|
||||
else if (!value && writer->getScope() == ConfigWriter::kSystem)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue