mirror of
https://github.com/QuasarApp/QuasarAppLib.git
synced 2025-05-07 23:19:42 +00:00
Merge branch 'main' of github.com:QuasarApp/QuasarAppLib
This commit is contained in:
commit
97cbfebebf
@ -54,6 +54,12 @@ void ISettings::sync() {
|
||||
return syncImplementation();
|
||||
}
|
||||
|
||||
void ISettings::forceReloadCache() {
|
||||
for (auto it = _cache.begin(); it != _cache.end(); ++it) {
|
||||
setValue(it.key(), getValueImplementation(it.key(), it.value()));
|
||||
}
|
||||
}
|
||||
|
||||
void ISettings::setValue(const QString key, const QVariant &value) {
|
||||
|
||||
if (_cache.contains(key) && _cache.value(key) == value) {
|
||||
|
@ -59,6 +59,12 @@ public:
|
||||
*/
|
||||
void sync();
|
||||
|
||||
/**
|
||||
* @brief forceReloadCache This method force reload settings data from disk.
|
||||
* @note Cache will be refreshed
|
||||
*/
|
||||
void forceReloadCache();
|
||||
|
||||
/**
|
||||
* @brief getMode This method return the current mode of the settings.
|
||||
* @return the current mode of the settings.
|
||||
|
Loading…
x
Reference in New Issue
Block a user