Skip to content

Commit

Permalink
Check managed settings only on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
egglessness committed Sep 2, 2024
1 parent 4c809e7 commit 5e804f7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/Config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -230,9 +230,11 @@ QVariant Config::get(ConfigKey key)
{
auto cfg = configStrings[key];
auto defaultValue = configStrings[key].defaultValue;
#if defined(Q_OS_WIN)
if (this->isManaged(key)) {
return m_managedSettings->value(cfg.name, defaultValue);
}
#endif
if (m_localSettings && cfg.type == Local) {
return m_localSettings->value(cfg.name, defaultValue);
}
Expand Down

0 comments on commit 5e804f7

Please sign in to comment.