refs #644 Move the enable of settings save to the same place as the initial settings load.

This commit is contained in:
Mathew Sutcliffe
2016-04-27 18:35:08 +01:00
parent d7a63c15d4
commit d9d30a339a
4 changed files with 12 additions and 5 deletions

View File

@@ -150,7 +150,7 @@ namespace BlackCore
bool s = this->startHookIn();
// trigger loading of settings in appropriate scenarios
// trigger loading and saving of settings in appropriate scenarios
if (this->m_coreFacadeConfig.getModeApplication() != CCoreFacadeConfig::Remote)
{
CStatusMessage m = CSettingsCache::instance()->loadFromStore();
@@ -159,6 +159,8 @@ namespace BlackCore
m.setCategories(getLogCategories());
CLogMessage::preformatted(m);
}
CSettingsCache::instance()->enableLocalSave();
}
if (waitForStart)

View File

@@ -24,7 +24,6 @@ namespace BlackCore
CContextApplication::CContextApplication(CCoreFacadeConfig::ContextMode mode, CCoreFacade *runtime) :
IContextApplication(mode, runtime)
{
connect(CSettingsCache::instance(), &CSettingsCache::valuesSaveRequested, CSettingsCache::instance(), &CSettingsCache::saveToStoreByPacket);
}
CContextApplication *CContextApplication::registerWithDBus(BlackMisc::CDBusServer *server)