Merge tag 'upstream/4.10.0.4' into packaging/openkylin/nile

4.10.0.4-release
This commit is contained in:
hewenfei 2024-01-17 09:19:10 +08:00
commit 17267acfed
1 changed files with 2 additions and 2 deletions

View File

@ -178,7 +178,7 @@ void GlobalSetting::initGlobalSettings()
void GlobalSetting::initUSDSetting()
{
m_cache.insert(IsLiteMode, true);
m_cache.insert(IsLiteMode, false);
const QString service = QStringLiteral("org.ukui.SettingsDaemon");
const QString path = QStringLiteral("/GlobalSignal");
@ -200,7 +200,7 @@ void GlobalSetting::initUSDSetting()
void GlobalSetting::onSysModeChanged(QMap<QString, QVariant> map)
{
if (map.contains("animation")) {
m_cache.insert(IsLiteMode, (map.value("animation").toString() == "off"));
m_cache.insert(IsLiteMode, (map.value("animation").toString() == QStringLiteral("lite")));
Q_EMIT styleChanged(IsLiteMode);
}
}