From 5e804f74443dd10e850d305c60ead91d7777c1d5 Mon Sep 17 00:00:00 2001 From: Daniele Ferla Date: Sun, 1 Sep 2024 21:26:41 +0200 Subject: [PATCH] Check managed settings only on Windows --- src/core/Config.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/Config.cpp b/src/core/Config.cpp index a5ab700e0f..d2df269afe 100644 --- a/src/core/Config.cpp +++ b/src/core/Config.cpp @@ -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); }