mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 07:15:35 +08:00
Refs T159 Context method to get unsaved settings keys with their human readable descriptions.
This commit is contained in:
@@ -92,6 +92,15 @@ namespace BlackCore
|
||||
return CSettingsCache::instance()->getAllUnsavedKeys();
|
||||
}
|
||||
|
||||
CSettingsDictionary CContextApplication::getUnsavedSettingsKeysDescribed() const
|
||||
{
|
||||
if (m_debugEnabled) { CLogMessage(this, CLogCategory::contextSlot()).debug() << Q_FUNC_INFO; }
|
||||
const QStringList keys = CSettingsCache::instance()->getAllUnsavedKeys();
|
||||
CSettingsDictionary result;
|
||||
for (const QString &key : keys) { result.insert(key, CSettingsCache::instance()->getHumanReadableName(key)); }
|
||||
return result;
|
||||
}
|
||||
|
||||
void CContextApplication::synchronizeLocalSettings()
|
||||
{
|
||||
// no-op: proxy implements this method by calling getAllSettings
|
||||
|
||||
Reference in New Issue
Block a user